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
Create client-side methods (./imports/api/*) for calling low-level functions on the collections
Implement On-client startup - fetching the latest activities and streams
Implement On-change route - fetching the latest activities and streams
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.
Universal wrapper function to do:
listStravaActivities
function with before and after argumentbefore
argument - default return is 30 activitiesafter
argument. To get the data of the latest activity -db.activities.find().sort({start_date: -1})[0].start_date