$ npm install
- Check Current Branch: Ensures you are in the main branch.
- Warn About Uncommitted Changes: Notifies if there are uncommitted changes, but proceeds without stashing or committing them.- Force Push: git push origin main:deploy --force will push all committed changes to the remote deploy branch, overwriting it.
- This script ensures that only committed changes in your local main branch are pushed to the remote deploy branch, without affecting any uncommitted or unstaged changes.
# prod
$ npm run build
$ npm start
## which is same as
node dist/main.js
on droplet run
pm2 start dist/main.js
## Running the app
```bash
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
- Using NeDB from https://www.npmjs.com/package/@seald-io/nedb for in-memory document storage (with same api as mongoDB)
- localhost:3000/api
Nest framework TypeScript starter repository.
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
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.
- Author - Pavel Gloss
TBD