darenc9 / FitFuture

https://fit-future.vercel.app
0 stars 0 forks source link

Create routine-service File #50

Closed mfunkel closed 1 month ago

mfunkel commented 3 months ago

User Story As a user, I want to view existing routines, create new routines, update my routines, and save them so that I can manage my fitness activities effectively.

Description For the routine data to be persisted in our database, we need a way to connect and interact with the Routine collection in the database. A routine-service.js file should be prepared with methods of connecting to the collection, as well as functions for querying (such as get all, get by user id, add new, update, remove by id, etc.). Any base capabilities that we believe the Routine class might need for us to interact appropriately should be created.

Acceptance Criteria

Testing