Todo-Server
Todo-server impl by using actix.rs
Why actix.rs
1. It's blazing fast
From now on, Actix is the second fastest web framework in the world.
2. It's easy to use
Don't need register routes in main function always.
#[get("/hello/{name}")]
async fn greet(name: web::Path<String>) -> impl Responder {
format!("Hello {name}!")
}
3. Debug
need install deps
docker
docker-compose
postgres (in lib/postgres)
cargo install diesel_cli --no-default-features --features "postgres"
cargo install cargo-watch
brew install httpie
# in this workspace
diesel migration run
after install deps
# start server (require cargo-watch)
make start
# test server (require httpie)
make test