Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 2 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 (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-08-26T16:32:55.000Z (6 months ago)
- Last Synced: 2024-11-08T14:13:34.581Z (3 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: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![Java CI](https://github.com/MatLock/championship/workflows/Java%20CI/badge.svg)
[![Travis CI](https://travis-ci.org/MatLock/championship.svg?branch=master)](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)