This is a microservice wrote in Java and Spring Boot. I'm using Apache Camel to create the flux of the data creating routes. To test this service I used a Test-Driven Development approach, so Cucumber was the tool that i choose to do it.
It's quite simple:
- Clone this repository
- Run the file database.sql in some MySql server
- if needed You may need to change the file application.yml
- if needed Change the fields url, password, username with your database information
- Build the service with:
./gradlew clean build --> Linux
OR
gradlew.bat clean build --> Windows
- Run the project with your IDE or with:
java -jar build/libs/cliente-service-0.0.1-SNAPSHOT.jar
- Go to Swagger to see the service running with an UI
- This the base url of the application:
http://localhost:9000/cliente-service/api/swagger-ui.html
- Run the project with your IDE or with:
./gradlew clean test --> Linux
OR
gradlew.bat clean test --> Windows
- Check the features and the stepdefs files