Nest framework TypeScript starter repository.
- Git (already config user)
# Install
sudo apt install -y git
# Config
git config --global user.name "YourName"
git config --global user.email "YourEmail"
- Nodejs
curl -sL https://deb.nodesource.com/setup_18.x | sudo -E bash -
sudo apt install -y nodejs
- Yarn
sudo npm install --global yarn
- Clone BE
git clone https://github.com/nhancv/nc-nestjs-template.git
cd nc-nestjs-template
- Install libs
yarn install
- Configuration
cp .env_sample .env
=> Correct env content
# Develop without watch mode
yarn start
# Develop in watch mode
yarn start:dev
# Unit tests
yarn test
# E2E tests
yarn test:e2e
# Test coverage
yarn test:cov
# Build
yarn build
# Run app in production
yarn start:prod
heroku login
heroku create <app name>
git add .
git commit -m 'ci: deploy to heroku'
git push heroku master
# Test at: <app name>.herokuapp.com
# Log view: heroku logs -t