Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialSam Lillicrap
12,127 PointsNode.js - Building my first app (A few questions)
Hey all,
Hopefully we have some node experts in here! I've done the node courses but I'm a little stuck on how to go about building my app for my use case.
I want to achieve three main tasks.
1) Log a users 'logged in' streak in days. Method: // Client JS - On login, POST date of login // Store it in JSON object on Customer object? // Somehow count consecutive days logged in from most recent login
2) Log how many minutes has listen to a track (being done in client JS, just needs to post to Heroku) Method: // GET current (live) minutes meditated from client JS in shopify every 10 seconds // Read current minutes meditated from the customer ID in JSON // Add two figures together // Write to JSON object in Heroku against customer ID
Any ideas or where to go from here would be so helpful :) Thanks