- Rust
- axum
- tokio
- Docker
- Domain Driven Design
- First, start the database container. Refer to the docs for more details.
- Next, run the devcontainer.
- Finally, start the server with the following command:
cargo run
Alternatively, you can start the server in watch mode with:
./watch.sh
curl -X POST \
-H "Content-Type: application/json" \
-d '{
"circle_name": "music club",
"capacity": 10,
"owner_name": "John Lennon",
"owner_age": 21,
"owner_grade": 3,
"owner_major": "Music"
}' \
http://127.0.0.1:3000/circle
curl -X GET http://127.0.0.1:3000/circle/{circle_id}
curl -X PUT \
-H "Content-Type: application/json" \
-d '{
"circle_name": "football club",
"capacity": 15
}' \
http://127.0.0.1:3000/circle/{circle_id}