Skip to content
This repository has been archived by the owner on Feb 2, 2022. It is now read-only.
/ stramate Public archive

A self-hosted data analyzer for your activities

Notifications You must be signed in to change notification settings

manhtai/stramate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StraMate

A self-hosted data analyzer for your Strava activities

Features

  • Activities heat map
  • Fitness & fatigue performance chart
  • Heart rate zones chart
  • Interactive 3D route map
  • Athlete RSS feed

More about performance chart: https://github.com/manhtai/stramate/wiki/Training-load:-Fitness-&-Fatigue

Notice

You should host it yourself, don't give your data to arbitrary people on the internet.

Demo

Heat

Training

Local setup

  1. Install NodeJS and Python Poetry first

  2. Create .env file in the project root

# Strava sync
STRAVA_CLIENT_ID=xxxxx
STRAVA_CLIENT_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

# Activity map
MAPBOX_ACCESS_TOKEN=pk.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

# Production mode
ENV=production

# Disable new registration
DISABLE_REGISTRATION=true
  1. Install dependencies and start server
poetry install
poetry run python manage.py tailwind install
poetry run python manage.py migrate
poetry run honcho start

Deployment

See deploy.sh for instruction on Ubuntu.