ReactAssignment (1)
ReactAssignment (1)
includes basic user authentication, form validation, CRUD functionality, and a dynamic data
table. The app should interact with a SQL Server database using Prisma, and the frontend
should be built with React (or any other preferred framework/library) for a seamless user
experience.
Project Requirements:
Signup Form: Allow users to create an account with the following fields:
o Email (must be unique and valid)
o Username
o Password (validation for strong passwords)
Login Form: Allow users to sign in using their email and password.
After the user successfully logs in, they should be able to update their personal information,
including:
o Username
o Email
o Phone
o Gender (Checkbox for Male/Female/Other)
o Date of Birth (DOB) (Using a date picker or input field)
o Other optional fields such as Address, Profile Picture, etc.
Use a dropdown for selecting gender.
4. Data Table:
Create a table that displays the user’s personal information and allows searching and
filtering by:
o Username
o Email
o Phone
o Gender
o Date of Birth
Create a table from the provided script that contains sales data. Display this data in a table
as desired and perform the following analyses in separate tables:
(NOTE : In Sales.sql replace Use [Database] with the actual database name.)
1. Best-Selling Product
2. Profit by City
3. Annual Sales and Profit
4. Quarterly Sales and Profit
5. Product-wise Sales Grouped by Year
The application must allow basic CRUD operations for user data:
o Create: Add new data (e.g., create a new user profile).
o Read: View user data in a data table.
o Update: Edit existing user data (i.e., allow the user to update their profile).
o Delete: Remove a user from the system.
6. Form Validation:
Use Zod or any relevant validation library to validate forms before submission (e.g., for email
format, password strength, required fields, etc.).
7. Database:
Technical Stack:
Frontend:
Backend:
Authentication:
Use JWT (JSON Web Tokens) for session management (or use cookie-based sessions if
preferred).