For learning purpose, create an API in Rust similar to Ergast API using Ergast Data (up to end of 2023).
- Start the database in docker
cd docker
docker compose up -d- Setup a
.envfile
SERVER_ADDR=127.0.0.1:8080
PG__USER=user
PG__PASSWORD=password
PG__HOST=localhost
PG__PORT=5432
PG__DBNAME=postgres
PG__POOL_MAX_SIZE=16
- Start the app with a hot reload or production
cargo watch -x run # hot reload
cargo run --release # release mod