- Rust
- Axum
- MariaDB
- Redis
- Docker
- CQRS
- Event Sourcing
You can see the architecture for more details.
- Run the devcontainer.
- Then, start the server with the following command:
cargo run --bin mainOr, you can use the watch script to automatically restart the server when you make changes to the code:
./watch.shWhen running the devcontainer, the following database management tools are automatically available:
Access at: http://localhost:8081
Access at: http://localhost:8082
curl -X GET http://127.0.0.1:8080/versioncurl -X POST \
-H "Content-Type: application/json" \
-d '{
"circle_name": "awesome music club",
"capacity": 10,
"owner_name": "John Lennon",
"owner_age": 21,
"owner_grade": 3,
"owner_major": "Music"
}' \
http://127.0.0.1:8080/circlecurl -X GET http://127.0.0.1:8080/circle/HlPI7rLpLP5NqHNIecdtQVwpv4kCYfDF2PrEcurl -X GET http://127.0.0.1:8080/circlecurl -X PUT \
-H "Content-Type: application/json" \
-d '{
"circle_name": "football club",
"capacity": 15,
"version": 2
}' \
http://127.0.0.1:8080/circle/wMenk0sdVDfQ5cvcqDOs3ubmXVeJ3aXs6Pbu