The purpose of spring-boot-microservices project is to learn how to build a microservice using Spring Boot Framework. spring-boot-microservices project contains api & endpoint-tests sub projects.The api project contains the implementation of Account REST API using Spring Boot.As part of implementation CRUD operation is implemented and H2 database is integrated using JPA also unit tests are implemented using junit, mockito & jacoco frameworks.The endpoint-tests project contains the integration test implemented using Rest-Assured.
Clone spring-boot-microservices and open api & endpoint-tests with Spring Tool Suite you can use any other IDE as well.
To run Spring Boot based Account REST API it is prerequisite to have Java 8 installed on your machine.
Pull requests are welcome. I will appreciate any help on improving/enhancing the project.
- Sagar Jadhav - sagar-jadhav
- Account Controller
- Account Service
- Account Repository
- Account Model
- Account Controller Unit Test
- Account Service Unit Test
- Account Endpoint Test
- Postman Collection
- Go to api directory. for e.g. cd <PATH_TO_CLONED_DIRECTORY>/api
- Run ./gradlew clean build
- Run java -jar ./build/libs/api-1.0.0.jar
- Go to api directory. for e.g. cd <PATH_TO_CLONED_DIRECTORY>/api
- Run ./gradlew clean build test
- Open file://<PATH_TO_CLONED_DIRECTORY>/api/build/reports/jacoco/test/html/index.html in any browser to view the coverage report
- Go to endpoint-tests directory. for e.g. cd <PATH_TO_CLONED_DIRECTORY>/endpoint-tests
- Run ./gradlew clean build test
- Open file://<PATH_TO_CLONED_DIRECTORY>/endpoint-tests/build/reports/tests/test/index.html in any browser to view the test report
Note: Subscribe to watch technological videos on different trending technologies