Welcome to our embryo microservice, use it as a quickstarter for new ms
You’ll start by editing your microservice README.
Copy & Paste the content of this repo in your new project
- Search for 'embryo' and replace it with the name of the microservice
- Maybe you'll need to change some files like 'DummyApi' to your microservice name.
- Replace dummy content with your content
- Ask in slack for adding the needed configuration in kubernetes
- Make a Pull Request
- Deploy your branch using http://ci.paisley.digital
- If behaviour tests are ok, your branch will be promoted to production and then merged.
- I recommend you to use a TDD or ATDD approach. We have good quality gates >70% test coverage ;)
Next, you’ll need to understand the main rules of the code
- APIController implements DummyAPI interface.
- The client package contains client for other web services.
- Use entities to crud entities in database using JPA repositories
- Use mappers to move data between layers. model to dto or dto to model or entity to dto.
- We use database as code. You can use liquibase master for adding your own sql to be executed on deploy.
- You must test all your methods in service layers, using mockbeans for clients and repositories you will find and example in DummyServiceTest.java.
- You must cover all your methods in controller layers, using spring cloud contracts, you will find and example in getDummy.groovy
- You must replace this README content with your own microservice readme.