The React/Next.js frontend for the CreatorsHub platform. It features a modern, responsive UI built with Tailwind CSS, Framer Motion for animations, and Lucide for icons.
- Framework: Next.js 16 (App Router)
- Library: React 19
- Styling: Tailwind CSS v4
- Animations: Framer Motion
- Icons: Lucide React
- Validation: Zod & React Hook Form
- Charts: Recharts
- Utilities: date-fns, html2canvas, jspdf
- Node.js (v18+)
- Backend server running (for API calls)
-
Navigate to the frontend directory:
cd frontend -
Install dependencies:
npm install # or yarn install -
Set up environment variables: Create a
.env.localfile in thefrontenddirectory:NEXT_PUBLIC_API_URL=http://localhost:5000/api
-
Start the development server:
npm run dev
Open http://localhost:3000 with your browser to see the result.
src/app: App Router pages and layouts.src/components: Reusable UI components.src/context: React Context providers (Auth, Theme, etc.).src/lib: Utility functions and library wrappers.src/types: TypeScript interfaces and types.public: Static assets (images, fonts).
- Dashboard: Interactive analytics and overview.
- Product Management: Create, edit, and list products.
- Order Tracking: View and manage customer orders.
- Settings: Configure application preferences.
- Reporting: Export data (PDF/Canvas) via
html2canvas/jspdf.