A web application for viewing structured math proofs, created for the MPSI1 class at Fermat High School in Toulouse.
The goal of this project is to display proofs organized by weeks, using data from a separate repository. A GitHub webhook is configured to trigger data refreshes whenever new content is pushed to the repository.
-
Clone this repository to your local environment.
-
Clone the compatible data repository into the
FS_LISTEN_PATHdirectory (set tocontentby default):git clone https://github.com/3fxcf9/kholles_content content
This repository will serve as the data source for the website.
-
Set up a GitHub webhook to trigger on push events. Use the server's address with the
/events/pushpath to trigger an update whenever new content is pushed to the data repository. -
Build and start the docker container with the following commands:
echo "GITHUB_WEBHOOK_SECRET=******" > .env # Set your GitHub webhook secret for validation
DOCKER_BUILDKIT=1 docker build -t kholles_server . # Build the Docker image
docker compose up -d # Start the Docker containerImportant
Ensure Docker Buildx is installed and enabled on your system before building.
- The server's listen address, port, and the
FS_LISTEN_PATH(directory path for the data repository) are all configurable in thedocker-compose.ymlfile. - Ensure that the
.envfile contains the correct GitHub webhook secret to properly validate incoming webhook requests.