Skip to content

cocomundo/wg-page-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors