Skip to content
main
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

IFSC iCalendar Generator GitHub release (latest by date) build Sonar Quality Gate

The IFSC iCalendar Generator is a utility that allows anyone to generate an iCalendar file containing the IFSC competition schedule for importing into calendar applications.

The utility fetches JSON data from the IFSC ranking endpoint and converts it into the iCalendar format.

Developer Notes

Prerequisites

  • Docker
  • Java 11
  • Node 12 / Yarn (commit hooks - run yarn to install dependencies)
  • Helm
  • Skaffold (for developing against a Kubernetes cluster)

IDE

To run in an IDE ensure that the local profile is set.

Local Build

To build and run the tests:

./gradlew clean build

To build the docker image:

./gradlew bootBuildImage

To run the service locally:

ENV=local SPRING_PROFILES_ACTIVE=local ./gradlew bootRun

To run the service in a kubernetes cluster (with hot reloading):

skaffold dev --force=false

Sample Requests

To make a request for all competitions:

curl -X GET -H "Content-Type: application/json" localhost:8080/calendar?leagueId=388

Note that the leagueId can be obtained by inspecting the network requests on the IFSC Competitions page.

License

This project uses the following license: MIT.