Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#3 backend user schema + api routes #19

Merged
merged 12 commits into from
Oct 30, 2024
Merged

Conversation

ManuP6789
Copy link
Collaborator

Description

Made the User schema and User CRUD, also made a simple form to test!

Issues

#3

Screenshots

image

Test

-Create a User with the form, fetch the user with fetch button, update the user with the update button, and finally delete the user.
-For each step check MongoDB collection for both User and VolunteerDetails

Possible Downsides

-Whenever we return a User, we return the user and volunteerDetails in a separate object.
-When we create the User it does not have the Events field until we update.

Additional Documentations

@ManuP6789 ManuP6789 requested a review from wkim10 October 30, 2024 01:17
@ManuP6789 ManuP6789 self-assigned this Oct 30, 2024
@ManuP6789 ManuP6789 linked an issue Oct 30, 2024 that may be closed by this pull request
Copy link
Collaborator

@wkim10 wkim10 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really good work guys, I added a few small changes like moving your form from the Home page to a component file (it'll be really good for the rest of the team to use as a reference) and adding the hoursWorked field to the VolunteerDetails schema. I'll merge it in but let me know if you have any questions on any changes I made!

@wkim10 wkim10 merged commit d0fc60e into main Oct 30, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Backend] User Schema + API Routes
3 participants