Skip to content

Backend for the first run of our training for Hackathon 2023

License

Notifications You must be signed in to change notification settings

cmd-users/run1back

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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