Experimenting with Rust and Rocket web framework. This is a simple REST Api that interacts with a MongoDB database to perform CRUD operations on a User model.
- GET /users
- GET /users/:id
- POST /users
- PUT /users/:id
- DELETE /users/:id
- Rust
- Cargo
- Docker
- Clone the repository
git clone https://github.com/dead8309/rocket-api.git
- Start the mongodb container
docker compose up -d mongodb
- Start the api server
docker compose up -d rocketapi