Installation steps:
- Clone the repository
- Install Docker
- Install Rust
- Create a
Secrets.dev.toml
file in theBackend/api
directory with the following content:
ALLOWED_ORIGIN = "http://localhost:10000"
JWT_KEY = "secret"
JWT_DURATION_MINUTES = "60"
FINALIZE_AUCTIONS_CRON = "1/60 * * * * *"
- Install Shuttle CLI
- Install Sqlx CLI:
cargo install sqlx-cli --no-default-features --features postgres
- Run
cargo shuttle run
in theBackend
directory to allow Shuttle to set up the database container - Run
sqlx migrate run --database-url=<DSN from Shuttle stdout>
in theBackend
directory to run the migrations - Rerun
cargo shuttle run
in theBackend
directory to restart the server