This repo is a base repo to be cloned when you want to bootstrap a project creation (similar to what yeoman does - but lightweight) It contains everything you need to bootstrap a nodejs microservice.
- Create the target repository for your project, should be named
dial-once/{service-name} - Clone this project
git clone git@github.com:dial-once/sample-node-microservice.git {service-name} - Makes the changes you need in the following files:
-
make init NAME={service-name} -
.env.tpl(you can create tokens if needed on logentries and bugsnag)
- update your target git repo:
-
git remote set-url origin git@github.com:dial-once/{service-name} -
git add .your changed files -
git commit --amendyour staged files -
git push -f -
git checkout -b develop && git push -u origin develop
- Change the default branch to develop in the repository settings
Define env vars
SONAR_HOST_URL=
SONAR_LOGIN=
SONAR_PASS=
GITHUB_TOKEN=
REPO_SLUG=dial-once/{service-name}And execute
make deps
make init
make test
make sonar