This template repo is used for the fast setup of a rust REST API.
The following technologies are used:
- Rust
- Axum
- SeaOrm
- Postgres
For a fast setup:
- Run
cargo install sea-orm-cli
- Create your .env file based on the example
- Run
docker-compose up -d
- Optional 1: Add new migrations (see here)
- Optional 2: Update the entities (see here)
- Start the REST API webserver with
cargo run
(remember to make the environment variables provided in your.env
accessible) - Open your browser and go to localhost:8000