Backend server for esrapp Built with node express
Prisma - ORM Express
JWT Helmet
- Clone the repo
npm install
-
Setup env variables
- COOKIE_SECRET
- JWT_EXPIRATION_MS
- JWT_SECRET
- DATABASE_URL
-
Change database datasource Default is Mongodb Depending on the datasource chosen you have access to different prisma cli commands please refer to prisma docs
-
Install the prisma client
npm run generate
- Start the server
npm run dev