Installation
$ yarn
$ cp .env.example .env
Running the app
# development
$ yarn start
# watch mode
$ yarn start:dev
# production mode
$ yarn start:prod
Test
# unit tests
$ yarn test
# e2e tests
$ yarn test:e2e
# test coverage
$ yarn test:cov
New module
nest generate module todo
nest generate controller todo
nest generate service todo
Yarn setup:
sudo nano ~/.profile
add
# set PATH so it includes yarn bin if it exists
if [ -d "$HOME/.yarn/bin" ] ; then
PATH="$HOME/.yarn/bin:$PATH"
fi
then
bash -l
Extensions
CMD history:
yarn global add @nestjs/cli
nest new todo
mv ./todo/* ./