great-bear-prisma

Stars
0

The prisma backend will not be written.

Unfortunately, Prisma does not help you with security in any idiomatic fashion. As a result, I've decided not to implement. A few random notes I took along the way:




TODO

  • add auth (passport)
  • re-write database using knex migrations for optimal structure
  • see if we can write *cart methods with built-in prisma library
  • add knex to context
  • figure out how to proxy queries
  • try proxying a subscription (client mode)

Uniplemented

  • login
  • signup
  • logout
  • user sessions each have a unique "current cart"
  • can add items to their cart
  • can manipulate their cart
  • can reset their cart
  • can check out, providing a payment card and geo-location
  • can track their order in real time
  • can view a list of their past orders

How to get started

cp .env .env.example # and fill in
yarn
service postgresql start
docker-compose up -d
dotenv yarn prisma deploy

Then go to http://localhost:4466