Donut app

A website that can record everyone’s donut perference and available donuts.

Technology used

Back end

Database

  • Postgres

Front end

  • react

Entity relationshop diagram

Entity relatinship diagram

Command

Create database:

createdb donut_app_db

Run server:

cd server

go run server.go

Initial Steps

  1. go mod init
  2. go get github.com/99design/pglgen
  3. brew install sqlc
  4. Write schema.sql
  5. write queries.sql queries
  6. write schema.graphqls same as schema.sql
  7. write schema.resolver.go according to queries.sql.go

GitHub

View Github