1.3 KiB
1.3 KiB
Rust Template Project for Development with Actix-Web and SeaORM
A lot of Thanks to these projects
This project template is made of:
- Rust
- actix-web: Async web framework for rust
- SeaORM: async ORM for integrating a Rust code base with relational databases
And I won't reach this without the help of:
- sqlx
- askama
- clap
- clap_complete
- serde
- env_logger
- log
Project strucutre
- src
- main.rs: entrypoint
- completion.rs: shell completion
- migrations: migration scripts
- web: web apis
- urls.rs: routes
- model: models generated by sea-orm-cli
- view.rs: url handlers
- controller.rs: logics
- README
- build: build tools
- scripts: automation scripts
Start from here
Run the server
Simply use cargo to run the project
Package into container
The template provides a simple Dockerfile and script to build container image.
Development
Define a new model
TODO
Roadmap
- Web
- ORM
- Packaging
- React