Nest framework TypeScript starter repository with:
- Authentication with JWT
- Route guarding based on authentication status and roles
- Database connection using Prisma
$ npm install
- Create .env file in project root
- Follow .env.template for required variables
- You can update your db provider here (Providers)
// From Project Root: prisma/schema.prisma
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
# 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