zpreator / moovmetrics

Web application for deeper analysis into fitness data. Integrates with Strava
MIT License
1 stars 0 forks source link

MoovMetrics

Strava companion app to explore deeper analysis including:

moovmetrics

Development Installation

Clone this repository

git clone https://github.com/zpreator/stravapp.git

Enter the folder

cd stravapp

Create and activate virtual environment (I usually use PyCharm to do this step)

python -m venv venv

Check your system 1 or 2

1 Windows

venv\scripts\activate

2 Linux/Mac

source venv/bin/activate

Get requirements

python -m pip install --upgrade pip
pip install -r requirements.txt

Set up Client ID and Client Secret with Strava

  1. If you have not already, go to https://www.strava.com/register and sign up for a Strava account.
  2. After you are logged in, go to https://www.strava.com/settings/api and create an app.
    1. Use www.example.com or anything else for the website and authorization callback domain
  3. When the app is created, take note of the Client ID and Client Secret
  4. Rename the file settings-template to settings.env
    1. Replace the <> sections in the file
      STRAVA_CLIENT_ID = <client_id>
      STRAVA_CLIENT_SECRET = "<client_secret>"

Run

python server.py