Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ricardozanini/soccer-stats
Soccer Stats is an example application to be used as a proof of concept for a presentation at Ansible Meetup in São Paulo
https://github.com/ricardozanini/soccer-stats
ansible jenkins jenkins-pipeline spring-boot
Last synced: 4 days ago
JSON representation
Soccer Stats is an example application to be used as a proof of concept for a presentation at Ansible Meetup in São Paulo
- Host: GitHub
- URL: https://github.com/ricardozanini/soccer-stats
- Owner: ricardozanini
- Created: 2017-09-14T18:19:50.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-08-12T18:40:09.000Z (over 4 years ago)
- Last Synced: 2024-12-08T08:31:54.876Z (15 days ago)
- Topics: ansible, jenkins, jenkins-pipeline, spring-boot
- Language: Java
- Size: 151 KB
- Stars: 85
- Watchers: 10
- Forks: 167
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Soccer Stats
Soccer Stats is an example application to be used as a proof of concept for a presentation at [Ansible Meetup in São Paulo](https://www.meetup.com/Ansible-Sao-Paulo/events/243212921/).
## Pre-requistes
* JDK 1.8
* Maven 3.3+## Environment
It's a sample Rest API built upon Spring Rest Framework. The database is based on data gathered from 2015/2016 season of Italian Soccer National Championship.
During the Spring Context bootstrap a temporary database is created using H2 with data imported from a spreedsheet.
## Installation
Just run `mvn clean package` on the project directory and your ready to go.
## Using
Bring the application up by running `java -jar soccer-stats-X.X.X.jar`, where's `X.X.X` is the project's version.
After the startup the endpoint should be availble at `http://localhost:8080/matches/{team_name}` where `{team_name}` must be a Italian team name like `juventus`, `milan`, `udinese` and so on.
To bring a specific match, try the endpoint `http://localhost:8080/matches/{home_team_name}/{visitor_team_name}` replacing the param vars to the match you'd like to see, for example:
[http://localhost:8080/matches/juventus/milan](`http://localhost:8080/matches/juventus/milan`)
## Credits
[Football-Data](http://www.football-data.co.uk/) for providing the data used for this lab.