Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/callicoder/spring-boot-flyway-example
Spring Boot Flyway Database Migration Example
https://github.com/callicoder/spring-boot-flyway-example
flyway spring-boot
Last synced: about 2 months ago
JSON representation
Spring Boot Flyway Database Migration Example
- Host: GitHub
- URL: https://github.com/callicoder/spring-boot-flyway-example
- Owner: callicoder
- Created: 2017-08-20T14:51:05.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-21T02:36:02.000Z (almost 7 years ago)
- Last Synced: 2024-04-11T15:33:50.003Z (9 months ago)
- Topics: flyway, spring-boot
- Language: Shell
- Homepage: https://www.callicoder.com/spring-boot-flyway-database-migration-example/
- Size: 49.8 KB
- Stars: 49
- Watchers: 5
- Forks: 55
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Spring Boot Flyway Example
Learn how to integrate Flyway in your Spring Boot application -
https://www.callicoder.com/spring-boot-flyway-database-migration-example/
## Requirements
1. Java - 1.8.x
2. Maven - 3.x.x
3. MySQL - 5.x.x
## Steps to setup
**1. Clone the application**
```bash
git clone https://github.com/callicoder/spring-boot-flyway-example.git
```**2. Create Mysql database**
```bash
create database flyway_demo
```**3. Change mysql username and password as per your installation**
+ open `src/main/resources/application.properties`
+ change `spring.datasource.username` and `spring.datasource.password` as per your mysql installation
**4. Build and run the app using maven**
```bash
cd spring-boot-flyway-example
mvn package
java -jar target/flyway-demo-0.0.1-SNAPSHOT.jar
```You can also run the app without packaging it using -
```bash
mvn spring-boot:run
```