Skip to content

Gargafield/variationsspil

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Variationsspil Prototype

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.

Installation

  1. Install Rust
  2. Install PostgreSQL
  3. Install Diesel CLI: cargo install diesel_cli --no-default-features --features postgres
  4. Login to PostgreSQL and create a database, write down the connection string in .env and diesel.toml file.
  5. Run diesel setup to setup the database.
  6. Run diesel migration run to run the migrations.
  7. Run cargo build to build app.

Usage

  1. Run the server with cargo run.
  2. Open http://localhost:8000 in your browser.
  3. Register a new user.
  4. Login with the new user.
  5. Press 'Giv mig et kort', and you will be redirected to a page where you can pick a card using a button.
  6. Pressing a card will direct you to the card page, where you can see the card and post a picture of your meal.

Contributing

This is for a school project and is not open for contributions.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

A project about having a diverse diet

Resources

License

Stars

Watchers

Forks

Contributors