Skip to content

Unofficial Endomondo extension to create team challenges (endomondo.com)

Notifications You must be signed in to change notification settings

patrikturi/challenge-app

Repository files navigation

Build Status

Introduction

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:

Deployment

  • git clone git@github.com: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 and docker-compose
  • Execute:
sudo su
./rebuild.sh
./restart.sh

Administration

  • Create new admin user:
sudo docker ps
sudo docker exec -it <container id> /app/manage.py createsuperuser

Updating deployment to new version

git pull
sudo su
./rebuild.sh
./restart.sh

Development

  • 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

About

Unofficial Endomondo extension to create team challenges (endomondo.com)

Resources

Stars

Watchers

Forks

Packages

No packages published