Hexagonal architecture approach.
Gradle multi module Spring-boot project.
Sonar plugin enabled.
Swagger2 configuration enabled.
H2 in memory persistence.
JUnit / mockito
Enable annotation processing in IDE
Intellij install lombok plugin.
Run the Spring Boot Application in restApi module.
You can try it with Swagger-ui accessing http://localhost:8080/swagger-ui.html
Create product:
{
"name": "Product1",
"price": 10
}
Create order:
{
"customerEmail": "[email protected]",
"products": [
1
]
}
- You do not need to add authentication to your web service, but propose a protocol / method and
justify your choice.
- Use of HTTPS.
- Password hash.
- Basic auth or OAuth.
- How can you make the service redundant? What considerations should you do?
- Decoupling restApi, service, port and adapter from spring boot dependency management and communicate them via async or sync protocols/frameworks, for example, this spring-cloud kubernetes solution.
Generate encrypted key
travis login --pro
travis encrypt --pro 7abce0510365e6f776e1f6b95727245001c43113
copy to .travis.yml
Follow instruccions in https://sonarcloud.io