Check also the original README.rst file.
Export the variables you have obtained by registering your application
creating a file variables.sh
in the project root.
#!/bin/bash
export STRAVA_CLIENT_ID=<ID>
export STRAVA_CLIENT_SECRET=<SECRET>
export MAIL_USERNAME=<USERNAME>
export MAIL_PASSWORD=<PASSWORD>
You can load the variables with source variables.sh
.
pip3.6 install virtualenv
python 3.6 -m virtualenv venv
Activate the virtual env with source venv/bin/activate
.
pip install -r requirements.txt
python setup.py develop
Start redis: redis-server
- Load environment variables:
source variables.sh
- Load the virtual env (only if you have created a virtual env):
source venv/bin/activate
- Start a celery worker:
celery worker -A monolith.background -B
- Load environment variables:
source variables.sh
- Load the virtual env (only if you have created a virtual env):
source venv/bin/activate
- Start the server:
python monolith/app.py
- http://localhost:5000
- Follow the instruction to register a new user, bind your account with your Strava profile and fetch your runs.
pip install -r dev-requirements.txt
- Run test with
pytest
from the root folder. - For the coverage
pytest --cov-config .coveragerc --cov monolith/tests