Skip to content

Latest commit

 

History

History
19 lines (17 loc) · 874 Bytes

README.md

File metadata and controls

19 lines (17 loc) · 874 Bytes

Backend

Installation steps:

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