I created this app as a requirement for my freeCodeCamp APIs and Microservices Certification, using Node.js, Express, Mongoose, shortId, and a free MongoDB Atlas database. The above front end API test also uses Bootstrap, jQuery, jQuery UI, and highlight.js. The API fulfills the following user stories:
/api/exercise/new-userand returned will be an object with
api/exercise/userswith the same info as when creating a user.
duration, and optionally
/api/exercise/add. If no date supplied it will use current date. Returned will the the user object with also with the exercise fields added.
/api/exercise/logwith a parameter of
_id). Return will be the user object with added array log and count (total exercise count).
limit. (Date format yyyy-mm-dd,