darenc9 / FitFuture

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

Adds Profile Handling #64

Closed mfunkel closed 3 months ago

mfunkel commented 3 months ago

What has been done?

For the backend:

For the frontend:

Usage

To test,

  1. startup the backend server by navigating to /backend-api and running npm start
  2. startup the frontend app by navigating to /frontend-ui and running npm run dev
  3. open a browser window to localhost:3000
  4. use your browser tools to toggle responsive design previews for phone screens
  5. use the navbar to navigate to "Profile" to view the current default profile details
  6. manually navigate to localhost:3000/profile/create to input information for a new profile (to be used during account creation)
  7. submit the form and notice the redirct to the profile details page with the newly created profile info
  8. click the "Edit Profile" button to adjust the values of the current profile
  9. submit your desired changes and notice the changes reflected in the profile details once again
  10. click the red trash icon to delete the profile (this will eventually require a confirmation dialog)
  11. notice the redirection to the profile page for the default profile information once again (this is temporary, since profile deletion in the final app would actually delete the account and log you out)

Optionally, checkout the mongoDB atlas database and browse the 'profiles' collection to watch the profile objects being added/updated/persisted/deleted while working through the above steps, however the jest tests written for the backend should cover those use cases, and should show as "passing" on github actions.