sladkovm / Velometria_js

Velometria web app using Meteor and React
http://velometria.com
0 stars 0 forks source link

Wrapper for Strava API #2

Open sladkovm opened 7 years ago

sladkovm commented 7 years ago

Universal wrapper function to do:

  1. Low-level fetch latest Activities and Streams and add them into collections
    • implement listStravaActivities function with before and after argument
    • implement recursive fetching of the activities using the before argument - default return is 30 activities
    • implement fetching of the latest activities using the after argument. To get the data of the latest activity - db.activities.find().sort({start_date: -1})[0].start_date
    • call on startup
    • provide button to fetch new
  2. Create client-side methods (./imports/api/*) for calling low-level functions on the collections
  3. Implement On-client startup - fetching the latest activities and streams
  4. Implement On-change route - fetching the latest activities and streams
sladkovm commented 7 years ago

Implement data filtering on the server using Meteor.publish() methods and call them via Metheor.call() from the client. Subscribe to the results at the client.