Full doc. at : https://rainbowbid.gitbook.io/rainbowbid-documentation/
Installation steps:
- Clone the repository
- Install Docker
- Install Rust
- Create a
Secrets.dev.tomlfile in theBackend/apidirectory 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 runin theBackenddirectory to allow Shuttle to set up the database container - Run
sqlx migrate run --database-url=<DSN from Shuttle stdout>in theBackenddirectory to run the migrations - Rerun
cargo shuttle runin theBackenddirectory to restart the server