Quote
"You cannot put pressure on me, no chance, no chance." - Jose Mourinho
Description
This PR creates a sign-up form in the frontend, allowing volunteers that will use our app to register themselves and select the project they will be associated with.
Instructions
Task
- Create
client/src/components/SignUpForm.jsx (form can be created using a chakra drawer)
- Fields: name, email, project (dropdown)
- Populate project dropdown using the GET endpoint for the users table
- On submit, use the POST endpoint to
/users with form data
- Have validation for required fields in the sign-up form before submission (ex: name and email non-empty, valid email format, project selected)
- Show a clear error message if submission fails and why if applicable (ex: duplicate email)
- Show a success confirmation after a successful sign-up
Acceptance Criteria
Resources
Quote
"You cannot put pressure on me, no chance, no chance." - Jose Mourinho
Description
This PR creates a sign-up form in the frontend, allowing volunteers that will use our app to register themselves and select the project they will be associated with.
Instructions
Task
client/src/components/SignUpForm.jsx(form can be created using a chakra drawer)/userswith form dataAcceptance Criteria
SignUpForm.jsxcreatedGET /projectsPOST /usersand shows confirmationResources
server/routes/users.js(endpoint reference)