Supports operations for writing reviews and listing reviews for a product but with no sorting or filtering.
MySQL needs to be installed and configured. Instructions provided separately.
- Connects to your local MySQL instance and creates the reviews database with the following command:
mysql> create database reviews;
- Replace the user authentication for connect with your local database configuration. Password and username are located on application.properties.
spring.datasource.username=<db username goes here>
spring.datasource.password=<db password goes here>
All the methos are listed on Swagger. Swagger UI: http://localhost:8080/swagger-ui.html
- MySQL Datasource in application.properties.
- Flyway scripts in src/main/resources/db/migration.
- JPA Entities and relationships.
- Spring Data JPA Repositories.
- Tests for JPA Repositories.
For further reference, please consider the following sections:
The following guides illustrate how to use some features concretely: