A modern, interactive dashboard for analyzing customer delivery performance metrics across different series.
- 📊 Interactive charts and visualizations
- 📈 KPI tracking and comparison
- 🔍 Searchable data table
- 🤖 AI-powered performance insights
- 📱 Responsive design
Before deploying, you need to set up your environment variables:
- Create a
.env.localfile in the project root:echo "GEMINI_API_KEY=AIzaSyARnxJOsKMB5Ur3wBZR_Q_-1HemzAYIWzw" > .env.local
-
Install Vercel CLI (if not already installed):
npm install -g vercel
-
Deploy your project:
cd "/Users/shadman/Documents/Vibe Coding/leads-analysis" vercel
-
Follow the prompts:
- Login to your Vercel account (if first time)
- Confirm the project settings
- Your app will be deployed!
-
Add Environment Variable to Vercel: After first deployment, add your API key:
vercel env add GEMINI_API_KEY
When prompted, paste your API key:
AIzaSyARnxJOsKMB5Ur3wBZR_Q_-1HemzAYIWzwSelect all environments (Production, Preview, Development) -
Redeploy to apply environment variables:
vercel --prod
-
Push to GitHub:
git init git add . git commit -m "Initial commit" git branch -M main git remote add origin <your-github-repo-url> git push -u origin main
-
Connect to Vercel:
- Go to vercel.com
- Click "Add New" → "Project"
- Import your GitHub repository
- Before deploying, go to "Environment Variables"
- Add:
GEMINI_API_KEY=AIzaSyARnxJOsKMB5Ur3wBZR_Q_-1HemzAYIWzw - Click "Deploy"
- Go to vercel.com
- Drag and drop your project folder directly into the Vercel dashboard
- Your site will be deployed automatically!
The project includes a vercel.json configuration file that ensures proper routing for your single-page application.
- Upload your Data CSV file
- Upload your Overview CSV file
- Click "Generate Dashboard" to view analytics
- Use the "Generate Summary" button for AI-powered insights
🔒 API Key Protection: The Gemini API key is securely stored as an environment variable and never exposed to the client. The application uses a Vercel serverless function (/api/generate-insights.js) to handle API calls on the backend.
For local testing with the AI insights feature:
- Create a
.env.localfile in the project root - Add your API key:
GEMINI_API_KEY=your_api_key_here - Install Vercel CLI:
npm install -g vercel - Run locally:
vercel dev - Open
http://localhost:3000
- HTML5
- Tailwind CSS
- Chart.js
- Showdown (Markdown rendering)
- Google Gemini AI API