A modern, real-time analytics dashboard built with React, Three.js, and MongoDB. Features a stunning black matte theme with 3D visualizations and animated components.
- Real-Time Data Updates: Live data refresh every 30 seconds
- 3D Visualizations: Interactive 3D charts using Three.js
- Modern UI: Sleek black matte theme with responsive design
- Performance Metrics: Track active users, revenue, conversion rates, and sessions
- Interactive Charts: Dynamic line charts and 3D bar graphs
- Animated Components: Smooth transitions and animations using Framer Motion
-
Frontend:
- React with TypeScript
- Three.js / React Three Fiber
- Chart.js / React Chart.js 2
- Framer Motion
- Tailwind CSS
- Lucide Icons
-
Backend:
- Node.js
- Express
- MongoDB
- Mongoose
-
Clone the repository
git clone https://github.com/yourusername/analytics-dashboard.git cd analytics-dashboard
-
Install dependencies
# Install frontend dependencies npm install # Install backend dependencies cd backend npm install
-
Environment Setup
# Frontend (.env) VITE_API_URL=http://localhost:5000/api # Backend (backend/.env) MONGODB_URI=your_mongodb_connection_string PORT=5000
-
Start the application
# Start backend server cd backend npm run dev # In a new terminal, start frontend cd .. npm run dev
- Dashboard Overview: View key metrics and performance indicators
- Real-Time Updates: Data refreshes automatically every 30 seconds
- Interactive Charts:
- Hover over charts for detailed information
- Rotate and zoom 3D visualizations
- Toggle different metrics visibility
- Connect your GitHub repository to Netlify
- Configure build settings:
- Build command:
npm run build
- Publish directory:
dist
- Build command:
- Add environment variables in Netlify dashboard
- Deploy!
- Deploy to your preferred hosting service (Heroku, DigitalOcean, etc.)
- Update the
VITE_API_URL
in frontend environment to point to your deployed backend - Ensure MongoDB Atlas connection string is properly configured
GET /api/analytics/stats
: Get current analytics statsGET /api/analytics/monthly
: Get monthly statisticsPOST /api/analytics/update
: Update analytics data
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Three.js for 3D visualization
- Chart.js for beautiful charts
- Tailwind CSS for styling
- MongoDB Atlas for database hosting
Your Name - @yourtwitter - [email protected]
Project Link: https://github.com/yourusername/analytics-dashboard