Technologies:
- Language: Rust
- Database: Postgres
- ORM: Diesel
First install the binary
cargo install cargo-watch
Start the project
cargo watch -q -c -w ./src -x run
If you have just installed
just run-dev-mode
GET All request
curl \
--header "Content-Type: application/json" \
--request GET \
http://localhost:5050/todos
POST One request
curl \
--header "Content-Type: application/json" \
--request POST \
--data '{"title":"todo from curl","description":"curl POST request"}' \
http://localhost:5050/todos
Using the rewrk HTTP load benchmarker
rewrk -c 256 -d 60s -h http://localhost:5050/todos --pct