Giter VIP home page Giter VIP logo

strava-app's Introduction

Strava-App

โš ๏ธ this is a rudimentary proof of concept and will have bugs!

Available at: strava.bjm.me.uk

Features

  • Fetch either your most recent runs or a specific run and view statistics (5k/10k time and pace etc.)
  • Receive an email when a new run is uploaded including statistics.
  • Merge two consecutive activities into one (note: start time is changed by 1 min. otherwise Strava detects as duplicate.)

Setup

Development Setup

  • Setup a Strava API Application here
  • Copy sample.env to .env and change values
  • docker-compose -f docker-compose-dev.yml up -d to start the DB
  • npm ci to install packages
  • npm run start:dev to start the server: localhost:3000

Production Setup

  • Setup a Strava API Application here
  • Copy sample.env to .env and change values
  • docker-compose up -d to start the DB and server
  • Access the server: localhost:3000

Webhook Setup

  • Make POST request to

    curl -X POST https://www.strava.com/api/v3/push_subscriptions \
      -F client_id=blah \
      -F client_secret=blah \
      -F 'callback_url=http://a-valid.com/url' \
      -F 'verify_token=STRAVA'
  • Should respond with subscription ID on success

  • Ensure verify_token parameter corresponds to VERIFY_TOKEN in .env file. Same goes for STRAVA_CLIENT_ID and STRAVA_CLIENT_SECRET

  • More info here

strava-app's People

Contributors

benmepham avatar dependabot[bot] avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.