This app lets you host team challenges. Teams can be set up in the admin site and competitor data is parsed from a third party service of choice.
Example: which team ran the most kilometers this month using Strava.
Supported data providers:
git clone [email protected]:patrikturi/challenge-app.git
cd challenge-app
- Create
.env
file and fill in these secrets:
ENDOMONDO_USER=
ENDOMONDO_PASSWORD=
SECRET_KEY=
SENTRY_DSN=
ENDOMONDO_USER & PASSWORD: login credentials to endomondo.com. SECRET_KEY: generate a key here and copy it. SENTRY_DSN: copy it from https://sentry.io -> Settings -> Client Keys (DSN) -> DSN - it is a special link to the sentry server.
- Install
docker
anddocker-compose
- Execute:
sudo su
./rebuild.sh
./restart.sh
- http://localhost should be up and running
- Check
./core/logs/
and https://sentry.io if the fetcher has any errors
- Create new admin user:
sudo docker ps
sudo docker exec -it <container id> /app/manage.py createsuperuser
- Log in at https://localhost/admin
- Follow admin guide here
git pull
sudo su
./rebuild.sh
./restart.sh
- Create
.env
file same as in Deployment - Install:
python3 -m venv virtualenv
. ./virtualenv/bin/activate
pip install -r requirements.txt
- Dev:
. env.sh
. ./virtualenv/bin/activate
touch ./core/db/db.sqlite3
./manage.py migrate
./manage.py test
./manage.py runserver