Nest framework TypeScript starter repository.
At this stage, our docker-compose.yml
is not ready yet, so please either find the database DATABASE_URL
either by setting it up yourself or ask your project admin.
Once your atlas is created, create a .env
file at project root directory and add you database connection string as DATABASE_URL
DATABASE_URL = YOUR_CONNECTION_STRING;
This project prefers using yarn
as it's package manager.
# Installing dependencies
$ yarn
# Generate Prisma Client
$ yarn prisma generate
# Start the server in development mode with watch mode or...
$ yarn start:dev
or
$ npm start:dev
# without watch mode
$ yarn start
or
$ npm start
# Or run this to start the server in production mode
$ yarn run start:prod
$ npm run start:prod
# unit tests
$ yarn run test
$ npm run test
# e2e tests
$ yarn run test:e2e
$ npm run test:e2e
# test coverage
$ yarn run test:cov
$ npm run test:cov
Category | Packages |
---|---|
Framework | nest |
BootStrapper | @nestjs/cli |
Scripting Language | typescript |
Web API | graphql , @nestjs/graphql |
Database ORM Client | prisma , prisma/client |
Encryption | bcrypt |
Authentication | @nestjs/passport , passport , passport-local ,@nestjs/jwt , passport-jwt |
Localisation | i18next |
Validation | class-validator ,class-transformer |
Logging | |
Testing | jest , supertest |
Code Control | eslint , prettier , eslint-plugin-prettier |
CI/CD | GitHub Actions |
undefined |
lodash |