Skip to content

qahtann/ai-powered-react-dashboard

Repository files navigation

🚀 AI-Powered React Dashboard

Next.js TypeScript Tailwind CSS License

A modern, production-ready AI-driven analytics dashboard built with Next.js 15, featuring real-time data visualization, predictive insights, and a beautiful UI powered by shadcn/ui.

Dashboard Preview

✨ Features

  • 🎨 Modern UI/UX - Beautiful, responsive design with dark mode support
  • 📊 Real-time Analytics - Live data updates with animated KPI cards
  • 🤖 AI-Powered Insights - Generate predictions and insights using AI
  • 📈 Advanced Charts - Multiple chart types (line, bar, pie, area) using Recharts
  • 🔍 Data Filtering - Advanced filters, search, and sorting capabilities
  • Performance Optimized - Built with Next.js 15 App Router and React Server Components
  • 🎯 Type Safe - Full TypeScript support with strict mode
  • Accessible - ARIA labels and keyboard navigation support
  • 📱 Responsive - Mobile-first design with collapsible sidebar

🛠️ Tech Stack

📦 Installation

  1. Clone the repository
git clone <your-repo-url>
cd ai-powered-react-dashboard-1
  1. Install dependencies
npm install
# or
yarn install
# or
pnpm install
  1. Set up environment variables

Create a .env.local file in the root directory:

# Optional: OpenAI API Key for real AI predictions
# If not provided, the app will use mock AI responses
OPENAI_API_KEY=your_openai_api_key_here

# Next.js
NEXT_PUBLIC_APP_URL=http://localhost:3000
  1. Run the development server
npm run dev
# or
yarn dev
# or
pnpm dev

Open http://localhost:3000 in your browser to see the dashboard.

🚀 Deployment

Deploy to Vercel

The easiest way to deploy this dashboard is using Vercel:

  1. Push your code to GitHub
  2. Import your repository in Vercel
  3. Add environment variables (if using OpenAI API)
  4. Deploy!

Deploy with Vercel

Manual Deployment

# Build the production bundle
npm run build

# Start the production server
npm start

📁 Project Structure

ai-powered-react-dashboard-1/
├── app/                    # Next.js App Router pages
│   ├── overview/          # Overview dashboard page
│   ├── analytics/         # Analytics page with charts
│   ├── predictions/       # AI predictions page
│   ├── settings/          # Settings page
│   ├── layout.tsx         # Root layout
│   ├── providers.tsx      # React Query & Theme providers
│   └── globals.css        # Global styles
├── components/
│   ├── ui/                # shadcn/ui components
│   └── dashboard/         # Dashboard-specific components
├── hooks/                 # Custom React hooks
├── lib/                   # Utilities, types, mock data
├── stores/                # Zustand stores
└── public/               # Static assets

📞 Support

About

AI-driven analytics dashboard with real-time data visualization and predictive insights

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors