-
Install the dependencies
npm i
-
create a
.env
file from.env.example
cp .env.example .env
Run migrations on the database
npx prisma migrate dev
npx prisma db seed
-
Follow the instructions mentioned in setup
-
for development server
npm run dev
-
for running production build
npm run build && npm start
-
using Docker
builidng docker image
docker build -t <image_name> .
running docker image
docker run -e PORT=4000 -p 4000:4000 <image_name> Note: PORT is an env variable
npm run test
npm run lint