The headlines are tweeted daily by @schlagzeilenbot.
To get JSON data from the website, just set the Accept header of a GET request
to application/json.
curl -H "accept: application/json" http://www.schlagzeilengenerator.ch/
Prerequisites: Python 3, uv
-
Clone repository
-
Enter app directory
cd app/
-
Install dependencies (automatically creates and manages virtual environment):
uv sync
-
Export some environment variables:
source env/dev
-
Run development server:
uv run python app.py
While developing, if you want to run code formatting:
uv tool run black .
Start containers:
docker-compose build
docker-compose up -d
To see the logs:
docker-compose logs
This project includes a devcontainer that also contains OpenCode.
3-clause BSD, see LICENSE file for more information.
- Danilo Bargen (Github: @dbrgn, Twitter: @dbrgn)
- Simon Aebersold (Github: @aebersold, Twitter: @saebersold)
