Modern Dashboard - Next.js
A modern, responsive dashboard built with Next.js, Tailwind CSS, and custom animated components.
Features
- 🌙 Dark/Light mode toggle
- 📊 Interactive data visualization with charts
- 🎨 Modern UI with animated components
- 📱 Fully responsive design for all devices
- ✨ Custom "tubelight" navigation with glowing effects
- 📈 Sales summary with animated stat cards
- 🛠️ Built with TypeScript for type safety
- 🔐 Authentication system
Tech Stack
- Frontend: Next.js, React, TypeScript, Tailwind CSS, Framer Motion
- UI Components: Custom components, Shadcn UI
- Charts: Custom chart components
- Icons: Lucide React
- Animation: Framer Motion
- Backend: Node.js, Express (for the API server)
Project Structure
/my-app
- Next.js application
/server
- Express API server for data handling
Getting Started
Prerequisites
- Node.js (v16+)
- npm or yarn
Installation
Clone the repository:
git clone https://github.com/yourusername/modern-dashboard-nextjs.git
cd modern-dashboard-nextjs
Install dependencies for the Next.js app:
cd my-app
npm install
# or
yarn install
Install dependencies for the server:
cd ../server
npm install
# or
yarn install
Set up environment variables:
- Create a
.env.local
file in the /my-app
directory
- Create a
.env
file in the /server
directory
Running the Application
Start the Next.js development server:
cd my-app
npm run dev
# or
yarn dev
Start the API server:
cd server
npm run dev
# or
yarn dev
Open http://localhost:3000 in your browser to view the dashboard.
Key Components
- DashboardNav: Modern navigation with tubelight effect
- SalesSummary: Animated sales statistics cards
- GlowingEffect: Adds a subtle glow to container components
- Charts: Custom chart components for data visualization
Screenshots
Dashboard Overview
Sales Summary
Dark Mode
License
MIT
Acknowledgements