Skip to content

hezhao/cycle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cycle logo

Build Status

Leveraging Moves app data, Cycle logs your trips, and calculates your average daily, weekly, and monthly bike commute speed between your home and work, and compare your trips with other cyclists globally.

Getting Started

  1. Apply for a Moves API key
  2. Create a redis database (e.g. You can create one for free at redistogo)
  3. Put in MOVES_CLIENT_ID, MOVES_CLIENT_SECRET, REDIS_URL, FLASK_APP_SECRET in env
  4. $ source env, or if you use Autoenv simply $ mv env .env

Debug on Local Machine

$ python run.py
$ open http://0.0.0.0:5000

Usage

  1. Go to https://cyclewithmoves.herokuapp.com/
  2. Register with a valid email addresss
  3. Connect with Moves app
  4. Label your home and work, if necessary also label bike rides between them (usually Moves app is smart enought to automatically label this)