A progressive Node.js framework for building efficient and scalable server-side applications.
This repository is made for backend team which are responsible for developing a REST api of the Reddit Clone using Nest framework which is TypeScript starter repository.
$ npm install# 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- use
eslintinstead of prettier for .ts files - use conventional commits (can use commitizen to help:
npm install -g commitizenand then usegit cz) - other files (.json, .rc, .js) are formatted using
prettier - precommit hook will run lint checking on staged files only. It will also run all tests on all uncommitted(not just staged) files.
- prepush hook will run formatting check and testing on all files
- use
git commitorgit czin terminal to gethuskyoutput. In vs code if you just hit commit you will have to wait without any output. - changes may break github desktop (on windows). You need WSL to run bash in git hooks.
- don't forget to
npm iandnpm run husky
Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.
lorem ipsum
Nest is MIT licensed.