User Story
As a user, I would like to save my profile information so that I can have a personalized experience with my fitness journey.
Description
For the profile data to be persisted in our database, we need a way to connect and interact with the Profile collection in the database. A profile-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 id, add new, update, remove by id, etc.). Any base capabilities that we believe the Profile 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)
[x] should be able to use user id to retrieve user from User collection
Note: Profile stores userId, but it is currently dummy as the User object does not exist yet - will need to be updated/integrated in future sprint when User handling is created.
User Story As a user, I would like to save my profile information so that I can have a personalized experience with my fitness journey.
Description For the profile data to be persisted in our database, we need a way to connect and interact with the Profile collection in the database. A
profile-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 id, add new, update, remove by id, etc.). Any base capabilities that we believe the Profile class might need for us to interact appropriately should be created.Acceptance Criteria
Testing