Boilerplate code and a demo for HTTP API projects based on nodecube.
- nodecube: nodecube is a batch of continuously updated base code and configurations for the minimal modern node.js service that conform to RESTful API, 12-Factor App, Microservice Architecture
- nodecube-cli: TODO
cp configs/env.sample.config env.config
For developers in China:
cp ./node_modules/nodecube/configs/Dockerfile-china Dockerfile-dev
For other developers:
cp Dockerfile Dockerfile-dev
Install dependencies
yarn
Remove all old containers and images, build new ones and run testing
npm run dev:rebuild
Just remove database containers and images
npm run dev:empty
Just remove all containers and images
npm run dev:reset
Reinstall all dependencies and update lock file
npm run upgrade
npm run dev:rebuild
npm run lint
npm run dev:test
npm run dev
npm run dev:debug
Need a new docker-compose.yml
with reconfigured environment variables
Send pull request to master
branch
Send pull request to production
(or staging
) branch