REST app built with Fastify, Prisma & TypeScript
npx prisma generate
npx prisma migrate dev --name init
npx prisma migrate deploy
npx prisma migrate reset
npx prisma studio
/documentation
DATABASE_URL=""
- postgresql database urlCOOKIE_KEY=""
- cookie key for session, 32 bytesPORT="3002"
- port for serverSHADOW_DATABASE_URL="
- postgresql database url for shadow database (only for development! should be different from DATABASE_URL)FRONTEND_URL="
- frontend url for CORS. For example :http://localhost:3000
npm run generate-prisma-and-migrate-and-build
npx prettier --write .
https://www.youtube.com/watch?v=LMoMHP44-xM