A Nest.js API for Reddit Clone.
$ npm install
# Create .env and .env.test files according to .env.example
$ cp .env.example .env
$ cp .env.example .env.test
.env.test
is used for e2e tests.
# Create and run database
$ npm run db:dev:up
# Apply migrations
$ npx prisma migrate dev
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
Nest is MIT licensed.