/bookmarks-server

NestJS application for bookmarks management

Primary LanguageHandlebars

Installation

$ npm install

pre-deploy.sh

  • 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.

Running and building the app in prod

# 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

Database

Swagger

  • localhost:3000/api

Description

Nest framework TypeScript starter repository.

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Support

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.

Stay in touch

License

TBD