-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
Purpose
- Create the page
- Design the page (html element)
- Use Zod & react-hook-form to validate & create form (https://ui.shadcn.com/docs/components/form)
- Make a call with "POST" endpoint to http://URL:PORTBACKEND/login with an object {email, password}
- For the call api, you should use react-query or SWR
- You should setup .env variable for backend URL if not
- You should also follow this structure (https://github.com/SwiichyCode/GitShareSpace/tree/master/src) is used services & modules. If you have question on structure please ask to @SwiichyCode
- Don't forget to show form errors, show loading state & disabled fields during loading
Motivations
Allow user to login and access to restricted pages and retrieves their data
Related to
Reactions are currently unavailable