- ExpressJs
- Jest
- Prisma
- Postgres
- Swagger AutoGen
- http://localhost:4000/ -> api-docs
- Postgres 17 :
- Main: deployed / local
- Shadow: Prisma migration validation
- Test: e2e Testing
npm install
SERVER_PORT=4000
JWT_SECRET=xx
DATABASE_URL=postgresql://postgres:password@localhost:5432/munch?schema=public&application_name=your_local_connection_name&connection_limit=1
SHADOW_DATABASE_URL=postgresql://postgres:password@localhost:5433/munch?schema=public&application_name=your_local_connection_name&connection_limit=1
JWT_SECRET=test
DATABASE_URL=postgresql://postgres:password@localhost:5434/munch?schema=public&application_name=your_local_connection_name&connection_limit=1
CREATE
DATABASE munch;
npm run dev
npm run test
After updating db Model run
npm run prisma:migrate:dev
npm run prisma:generate