djbrown / spielerplus-calendar

1 stars 1 forks source link

spielerplus-calendar

Get your Spielerplus events in ICS format for calendar subscription.

CI Build Docker Docker Image)

Setup

Tools

Configuration

The application has to be configured with a config.json file. For an example see tests/data/config.json

Development Flask Server

Start a development server:
poetry run flask --app spielerplus_calendar/server.py --debug run

The server is reachable under http://localhost:5000 (flask default).

Endpoints (spielerplus-calendar/server.py):

CLI

Generates ICS output for custom postprocessing:
poetry run python spielerplus_calendar/main.py

Production Docker Image

Starts a production ready server in a docker container:
docker run -p 5000:5000 -v $(pwd)/config.json:/app/config.json:ro djbrown/spielerplus-calendar The server will be reachable under port 5000 on all public ip addresses of your machine. You may optionally change the default server timeout (300s) e.g: -e SERVER_TIMEOUT=600.