This template repository contains all the required files to start a simple challenge.
Ensure you have python poetry installed - this is used to install a virtualenv and manage dependencies
pip install --upgrade pip --user
pip3 install poetry
python -m poetry install --no-root
Flask comes with a development server built in. To use it, run
python -m poetry run flask -A challenge run
python -m poetry run gunicorn 'challenge:app'
Run on local machine:
docker-compose -p "<project name>" -f "docker/dev-compose.yaml" up --build
So it can be run on sucss server:
- Edit
docker/prod-compose.yaml
and change all occurrences of<challenge_name>
to the subdomain of the challenge. For example if you want the challenge to be hosted onchallenge.sucss.org
then replace<challenge_name>
withchallenge
.