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.
- Configure the MySQL Datasource in application.properties.
- Add Flyway scripts in src/main/resources/db/migration.
- Define JPA Entities and relationships.
- Define Spring Data JPA Repositories.
- Add tests for JPA Repositories.
For further reference, please consider the following sections:
The following guides illustrate how to use some features concretely:
Swagger-UI was added so the interface can be easily tested with the url:
- DTO implementation based on:
CREATE DATABASE JDND_C3_MIDTERM;
GRANT ALL PRIVILEGES ON JDND_C3_MIDTERM.* TO 'udacity'@'localhost' IDENTIFIED BY 'udacity';
GRANT ALL PRIVILEGES ON JDND_C3_MIDTERM.* TO 'udacity'@'%' IDENTIFIED BY 'udacity';
FLUSH PRIVILEGES;
CREATE DATABASE JDND_C3_MIDTERM_V2;
GRANT ALL PRIVILEGES ON JDND_C3_MIDTERM_V2.* TO 'udacity'@'localhost' IDENTIFIED BY 'udacity';
GRANT ALL PRIVILEGES ON JDND_C3_MIDTERM_V2.* TO 'udacity'@'%' IDENTIFIED BY 'udacity';
FLUSH PRIVILEGES;
Links:
Step 1: From your project repository, bring in the changes and test.
git fetch origin
git checkout -b feat/mongodb-integration origin/feat/mongodb-integration
git merge master
Step 2: Merge the changes and update on GitHub.
git checkout master
git merge --no-ff feat/mongodb-integration
git push origin master