-
Notifications
You must be signed in to change notification settings - Fork 1
Setup a new service
Michael Rüfenacht edited this page Aug 9, 2018
·
7 revisions
- Create a new repository on Github (the
origin) for your organisation. Github will automatically create amasterbranch set up to trackorigin/master. - Clone the repository.
- Add the
loopback-microservice-templaterepository to your remotes (to list your remotes usegit remote -v), e.g. calledupstreamviagit remote add upstream git@github.com:joinbox/loopback-microservice-template.git - We'd recommend to create a new branch for your setup e.g.
git checkout -b initial-setupbased on your master branch (which should be set up to trackorigin/master). We've usually got branch-protection and you're not allowed to push (or merge without review) changes to the master branch. - Pull the template (
upstream) into your setup branchgit pull upstream master(If you are allowed to make changes to your master branch, then you could pull it directly). - Configure your
datasources.jsonand create the schema if you use postgres. - Add the service name and the port to the
config.json. - Update the service version in the
package.json. - Commit and push your changes (todo: add contribution guideline).
- Create a pull request and assign someone of the team for a review.
- Add it to the devstar setup (todo: add documentation).