Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 1.03 KB

README.md

File metadata and controls

45 lines (33 loc) · 1.03 KB

run1back

Backend for the first run of our training for Hackathon 2023.

Requirements

  • Rust (nightly)
  • Docker
  • docker-compose

Setup

    1. This project requires the nightly version of Rust. If it's not installed on your system yet, you can run this command to install it:
rustup toolchain install nightly
    1. While inside the project directory, run the following command to use the nightly version of Rust for the project:
rustup override set nightly
    1. Install the diesel_cli
cargo install diesel_cli --no-default-features --features postgres

Run

    1. While Docker is running Run the postgres database with docker-compose
docker-compose up -d postgres
    1. Run migrations to update the database
DATABASE_URL=postgres://rocket:rocket@localhost:5432/rocket diesel migration run
    1. Start the server
cargo run