issues
search
UNLV-CS472-672
/
2024-S-GROUP5-Munch
The Munch app is a social platform where users create profiles by selecting preferred foods.
1
stars
11
forks
source link
Backend New User Routes Link to Database
#24
Closed
KeenParchment
closed
5 months ago
KeenParchment
commented
5 months ago
Description / Changes Made
Created a User Validation function to verify the data of a user is valid
Added a create_user route that directly interacts with the Firebase database
Tested the function to ensure it works with the Firebase
Screenshots
How to Test
Run the backend server
Using Postman, add the address
http://localhost:5000
and set the Method to POST
Give the address a proper route /api/users. It can be seen in the screenshot above the route is:
http://localhost:5000/api/users
Navigate to Body -> raw (ensure you are using JSON)
Include the body with its fields, to insert into the Firebase database
Click send and Postman will return the query in JSON format
Check the Firebase for the new user has been added (new unique ID should be created)
Checklist
[x] I have added relevant documentation, and I have followed the coding style guidelines.
[x] I have verified the user_validation function expects the current database requirements
[x] I have verified proper error messages are returned on error
[x] I have checked for any potential conflicts with other branches and fixed any merge conflicts.
Description / Changes Made
Screenshots
How to Test
Checklist