User Story
As a user, I would like to save my workout history so that I can keep track of what I've previously done.
Description
For the history data to be persisted in our database, we need a way to connect and interact with the History collection in the database. A "history-service.js" file should be prepared with methods of connecting to the collection in addition to any required functionality such as CRUD operations to allow for the backend to interact with the database.
Acceptance Criteria
[x] CRUD operations should be setup
[x] additional operations should be implemented for specific read operations such as by id
User Story As a user, I would like to save my workout history so that I can keep track of what I've previously done.
Description For the history data to be persisted in our database, we need a way to connect and interact with the History collection in the database. A "history-service.js" file should be prepared with methods of connecting to the collection in addition to any required functionality such as CRUD operations to allow for the backend to interact with the database.
Acceptance Criteria
Testing