Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 1.17 KB

README.md

File metadata and controls

37 lines (27 loc) · 1.17 KB

SUCSS Challenge Template

Python static type/format checks

This template repository contains all the required files to start a simple challenge.

Setup

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

Running in development

Flask comes with a development server built in. To use it, run

python -m poetry run flask -A challenge run

Running in production

python -m poetry run gunicorn 'challenge:app'

Running with docker

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 on challenge.sucss.org then replace <challenge_name> with challenge.