This project is a real-time analytics dashboard with an integrated support chat feature. It's built using Next.js 14, TypeScript, and Tailwind CSS, showcasing real-time data visualization, user activity tracking, and a responsive chat interface.
Clone the repository:
git clone https://github.com/your-username/Real-time-Analytics-Dashboard-with-Support-Chat.git
cd analytics-dashboard
Install dependencies:
npm install
# or
yarn install
Set up environment variables:
Create a .env.local
file in the root directory and add the following:
NEXTAUTH_SECRET=your_nextauth_secret
NEXTAUTH_URL=http://localhost:3000
Run the development server:
npm run dev
# or
yarn dev
Open http://localhost:3000 in your browser to see the application.
/src/app
: Next.js 14 app directory/src/components
: React components/src/lib
: Utility functions and mock socket/public
: Static assets/src/app/dashboard/page.tsx
)/src/app/support/page.tsx
)/src/components/ChatInterface.tsx
)/src/components/ActivityFeed.tsx
)/src/components/UserSimulator.tsx
)This project uses NextAuth.js for authentication. The sign-in page is located at /src/app/page.tsx
.
/src/lib/mockSocket.ts
to change the simulated real-time data./src/components/ui
directory to match your design preferences.tailwind.config.js
.https://www.loom.com/share/25a1a57b79df4917a904c5cc91f72594?sid=eae16f09-1b2b-49c8-80f1-bb3b12cd3615