Skip to content

🚀 MGSLG Analytics Platform - LOCAL DEMO SETUP

🚀 MGSLG Analytics Platform - LOCAL DEMO SETUP

Section titled “🚀 MGSLG Analytics Platform - LOCAL DEMO SETUP”

Your FastAPI Backend is running perfectly on http://localhost:8000

  • ✅ Database: PostgreSQL with 1,500+ participants
  • ✅ KPIs Endpoint: Returns real data (2.25M participants!)
  • ✅ Health Check: Working perfectly

🎯 START THE FRONTEND (Run these commands)

Section titled “🎯 START THE FRONTEND (Run these commands)”
Terminal window
# 1. Navigate to frontend directory
cd /Users/nhla/Desktop/PROJECTS/2025/mathew-goniwe/frontend
# 2. Install dependencies (only needed once)
npm install
# 3. Start the development server
npm run dev

The frontend will start on http://localhost:3000

Once frontend starts, you’ll have:

  • ✅ Executive KPIs with real data from your database
  • ✅ Interactive charts and geographic performance
  • ✅ Modern UI with gradients and animations
  • ✅ Loading indicators when fetching real data
  • ✅ Real-time filtering by province and date
  • ✅ Custom charts (Bar, Line, Progress Rings)
  • ✅ Live data from FastAPI backend
  • ✅ Professional analytics interface
  1. Show the Executive Dashboard - Clean professional overview
  2. Click “Interactive Dashboard →” - Full analytics suite
  3. Filter by Province - Show Western Cape’s 91% completion rate
  4. Show API Documentation - Professional backend at /docs
  5. Highlight Data Volume - 1,500+ participants, real database
  • “This is running on real PostgreSQL database”
  • “1,500+ authentic South African participants”
  • “Real-time API integration with FastAPI”
  • “Interactive filtering and drill-down capabilities”
  • “Professional full-stack TypeScript/Python architecture”

The platform still works! You can demo:

Terminal window
# Test your backend is working
curl http://localhost:8000/api/health
# Get real KPI data
curl http://localhost:8000/api/dashboard/kpis

You have a production-ready analytics platform running locally! 🚀