Skip to content

Backend for the RainbowBid auction platform implemented using Rust, Axum, Shuttle and Clean Architecture

License

Notifications You must be signed in to change notification settings

RainbowBid/Backend

Repository files navigation

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

About

Backend for the RainbowBid auction platform implemented using Rust, Axum, Shuttle and Clean Architecture

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages