PROJECT OBJECTIVE:
Build a Single Page Application (SPA) that includes CRUD (Create, Read,
Update, Delete) functionality on a dynamic data table. The application
should interact with a SQL Server database using Prisma as the ORM for
seamless database interaction. The frontend will be built using NextJS to
provide a smooth and interactive user experience.
PROJECT REQUIREMENTS:
1. Database:
SQL Server will be used as the database engine.
Prisma ORM will be implemented for seamless database interaction.
2. Data Table (use ag-Grid if possible):
Create a database using the provided script file, which includes a
sales table with the following columns: id, sale_date, product,
customer_id, quantity, unit_price, total, discount, profit, city, and
county.
Display this data in data table, and perform the following operation:
o Best-Selling Product
o Annual Sales and Profit
o Quarterly Sales and Profit
3. CRUD Operations:
Create: Add new data.
Read: View data in a data table.
Update: Edit existing data (if possible, use inline editing).
Delete: Remove data from the system.
4. Form Validation:
Use Zod or any relevant validation library to validate forms before submission.
TECHNICAL STACK:
Frontend:
React (or your preferred frontend framework)
React Router for navigation
CSS/SCSS for styling
Zod or another form validation library for form handling
Backend:
NextJS
Prisma ORM for database operations
SQL Server as the database engine