Skip to content

Latest commit

 

History

History
64 lines (47 loc) · 856 Bytes

File metadata and controls

64 lines (47 loc) · 856 Bytes

WG Page Backend

Backend

To run the backend for development, start a postgres Database

docker pull postgres
docker run --name postgresDB
    -p 5432:5432
    -e POSTGRES_USER=user
    -e POSTGRES_PASSWORD=1234
    -e POSTGRES_DB=wg_db
    -d postgres

create a .env file

DATABASE_URL=postgres://user:1234@localhost/wg_db

initialize the database:

diesel migration run

then start the server (The backend is the default binary)

cargo run

optionally, set a logging level:

RUST_LOG=trace cargo run

To reapply the database migrations:

diesel migration redo -a

Deployment (TBD)

Planned

Website features

  • user authentication

Categorys

  • welcoming
  • shopping list
  • cleaning list
  • calender
  • gallery
  • guestbook

DB content:

  • Users
  • shopping items
  • appointments