https://github.com/matlock/championship
small project to show how to build a java spring boot project with docker and travis
https://github.com/matlock/championship
aop-aspects docker docker-compose h2-database java-8 mysql mysql-database spring-boot swagger-ui travis-ci
Last synced: 4 months ago
JSON representation
small project to show how to build a java spring boot project with docker and travis
- Host: GitHub
- URL: https://github.com/matlock/championship
- Owner: MatLock
- Created: 2020-02-20T20:53:00.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-08-26T16:32:55.000Z (about 1 year ago)
- Last Synced: 2025-05-25T20:45:27.764Z (5 months ago)
- Topics: aop-aspects, docker, docker-compose, h2-database, java-8, mysql, mysql-database, spring-boot, swagger-ui, travis-ci
- Language: Java
- Homepage:
- Size: 67.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

[](https://travis-ci.org/MatLock/championship)
# Championship
========================
### Run it with Docker
* Have [docker](https://www.docker.com/) installed
* Execute ```docker-compose build```
* Execute ```docker-compose up```
* Go to http://localhost:8080/swagger-ui.html to see swagger documentation
**NOTE:** to see MySQL tables connect to **localhost:3306/championship** (credentials provided in **docker-compose.yml** file). To see MySQL [Schema](https://github.com/MatLock/championship/blob/master/src/main/resources/schema-prod.sql) it is provided in resources folder.
### Run it in debug mode
* Have [Maven](https://maven.apache.org/install.html) installed
* Have **JDK 8** installed
* Execute ```mvn clean install```
* Execute ```mvn spring-boot:run```
* Go to http://localhost:8080/swagger-ui.html to see swagger documentation
**NOTE:** This is development mode. The Application will create Tables in memory with H2 and It will print
all the queries done to the data base.
### METRICS
Endpoints statistics and JVM status in http://localhost:8081/metrics for both approaches
___________________________________________________
Jorge Flores - [LinkedIn Profile](https://www.linkedin.com/in/jorge-flores-45b58988/?locale=en_US)