Skip to content

Setup a new service

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

Clone this wiki locally