Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tofazzaltopu/java-spring-boot-hibernate-jpa-restful-api-and-flyway-migration
Develop RestFul APIs, implemented Database Migrations with Flyway, Spring Data JPA, ModelMapper, Lombok, API documentation (Swagger) with JDK-8, Spring Boot, Maven
https://github.com/tofazzaltopu/java-spring-boot-hibernate-jpa-restful-api-and-flyway-migration
devtools docker flyway hibernate5 java-8 junit5 lombok maven mockito modelmapper mysql-database restful-api spring spring-boot spring-data-jpa swagger-ui
Last synced: about 18 hours ago
JSON representation
Develop RestFul APIs, implemented Database Migrations with Flyway, Spring Data JPA, ModelMapper, Lombok, API documentation (Swagger) with JDK-8, Spring Boot, Maven
- Host: GitHub
- URL: https://github.com/tofazzaltopu/java-spring-boot-hibernate-jpa-restful-api-and-flyway-migration
- Owner: TofazzalTopu
- Created: 2022-03-06T10:30:02.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-03-16T13:52:31.000Z (over 2 years ago)
- Last Synced: 2023-10-21T08:24:16.718Z (about 1 year ago)
- Topics: devtools, docker, flyway, hibernate5, java-8, junit5, lombok, maven, mockito, modelmapper, mysql-database, restful-api, spring, spring-boot, spring-data-jpa, swagger-ui
- Language: Java
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# User progress tracking system
## (An example of developing RestFul APIs based on Rest API guideline)Please follow below instructions to run this project:
You should have JDK-8 and MySql-8 installed in your PC to run this application.
Technology stack:
1. Java - 8
2. Spring Boot
3. Spring Data JPA
4. Maven
5. Mysql
6. Flyway
7. ModelMapper
8. Swagger
9. Devtools
10. lombokRun Commands:
1. mvn clean
2. mvn install
3. mvn spring-boot:runGenerate and run jar file:
1. mvn clean install.
2. cd target
3. java -jar user-progress.jar
```
###Browse swagger:
1. After running code please check API documentation swagger ui
2. Swagger UI: http://localhost:8080/swagger-ui.html
```#### For Database Migrations with Flyway, add maven dependency in pom.xml
```
org.flywaydb
flyway-core```
Create a folder db.migration under resources folder and then
create SQL scripts under this folder.
Flyway adheres to the following naming convention for migration scripts:
```
__.sql
For example: V1__add_users.sql
```