This repository contains the starter code for a React live coding exercise focused on data analysis and performance optimization.
-
Clone the repository
git clone https://github.com/Metasiteorg/frontend-live-task.git cd frontend-live-task -
Install dependencies
pnpm install
-
Start the development server
pnpm dev
-
Open your browser
Navigate to
http://localhost:5173(or the port shown in your terminal)
You will build a Sales Analysis Dashboard that processes and displays 100,000 sales records. The starter code includes:
- Data generator function (
src/lib/generateSalesData.ts) - Generates 100K sales records - Basic component structure (
src/App.tsx) - Starter layout with shadcn components - UI components - Table, Input, and Card components from shadcn/ui
Refer to the task document (PDF) provided separately for detailed requirements.
pnpm dev- Start development serverpnpm build- Build for productionpnpm preview- Preview production buildpnpm lint- Run ESLint
- React 19 with TypeScript
- Vite for build tooling
- Tailwind CSS for styling
- shadcn/ui for UI components
- You are free to install additional libraries if needed (e.g., for virtualization, data handling)
- Focus on performance, code quality, and React best practices
- The task is designed to be completed in approximately 60 minutes
Good luck!