A prototype for a new tast-challinging website. The prototype consists of basic auth with signup and login, viewing so called 'Spisekort', and user posts. It uses Rocket.rs and Diesel with PostgreSQL.
- Install Rust
- Install PostgreSQL
- Install Diesel CLI:
cargo install diesel_cli --no-default-features --features postgres - Login to PostgreSQL and create a database, write down the connection string in
.envanddiesel.tomlfile. - Run
diesel setupto setup the database. - Run
diesel migration runto run the migrations. - Run
cargo buildto build app.
- Run the server with
cargo run. - Open
http://localhost:8000in your browser. - Register a new user.
- Login with the new user.
- Press 'Giv mig et kort', and you will be redirected to a page where you can pick a card using a button.
- Pressing a card will direct you to the card page, where you can see the card and post a picture of your meal.
This is for a school project and is not open for contributions.
This project is licensed under the MIT License - see the LICENSE file for details.