Using Node Version Manager
$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
$ nvm install 16
Download and run the installer from nodejs.org
npm i
- Development:
npm run dev
- Production:
npm start
- Production Container:
npm run docker:compose
Default port :
8080
Documentation will be generated at {app}/api-docs
- Cancel Redundant Deploys
- Setup ( Checkout Repo , Install Node & Dependencies )
- Run Linter
- Run Tests
- Upload Test Coverage
- Deploy to heroku
The pipeline automatically generates a coverage report and uploads it to codecov
You'll need to set the following actions secrets:
CODECOV_TOKEN
: Repo TokenCan be obtained on codecov when setting up or on settings
The pipeline deploys the server automatically on pushing to master
You should create the app on heroku first
You'll need to set the following actions secrets:
HEROKU_NAME
: App nameHEROKU_EMAIL
: Account emailHEROKU_API_KEY
: Account API keyAPI_KEY
: This app's api-key, needed to make requests
$ heroku login
$ heroku authorizations:create
use token from created auth