1SC multidisplinary project Diploma-Startup/Patent REST API backend implementation in NestJs
Upon opening this repository in VS Code it will prompt you to install recommended extensions (Prettier, ESLint, Prisma, .. etc)
You will also find VS Code workspace settings for formatting text and indentation already set up. As Well as running pre-commit hooks from npm/husky to run formatting and linting checks.
$ npm install && npm run prepare
$ mv .env.example .env
$ npx prisma generate# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prodMake sure to have docker and docker-compose installed.
# cd to prisma directory
$ cd prisma
# start the database
$ docker-compose up
# start the database in background
$ docker-compose up -d# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov