User StoryAs 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
[x] CRUD operations should be setup
[x] additional versions of R should be setup (such as get by user id, get by category, etc.)
[x] should be able to use array of workout IDs to retrieve workouts from Workout collection
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