Skip to content

A demo project to show how to make a simple todo app using Forgen Architecture for multi-platforms

Notifications You must be signed in to change notification settings

forgen-org/todo

Repository files navigation

Forgen: Simple Todo App

This is a Rust project that uses the Cargo build system and Just for task running. The project is structured into several parts: a core application logic, and two client implementations (Axum and Yew).

Architecture

The project is divided into several parts:

  1. application: This is where the core business logic of the application resides. It contains commands for adding, removing, and completing tasks. These commands are defined in commands.rs.

  2. framework: This is a set of common utilities and traits used across the application.

  3. clients: This directory contains two client implementations of the application:

    • axum: This is a server-side implementation using the Axum web framework. The server exposes several endpoints for interacting with the todo list. The main entry point is main.rs.
    • yew: This is a client-side implementation using the Yew framework for building web applications with Rust and WebAssembly. The main entry point is main.rs.

Getting Started

To start the project, you need to have Rust and Just installed on your machine. If you don't have them, you can install Rust from the official website and Just from its GitHub repository.

Once you have Rust and Just installed, you can use Just to run tasks defined in the Justfile. For example, to start the Axum server, you can run:

just axum

And to start the Yew client, you can run:

just yew

Please refer to the Justfile for more tasks and details.

Contributing

Contributions are welcome. Please feel free to open an issue or submit a pull request.

About

A demo project to show how to make a simple todo app using Forgen Architecture for multi-platforms

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published