AI-powered Self Service Dashboard with PygWalker integration and Ollama-based intelligent dashboard generation
# Clone the repository
git clone <your-repo-url>
cd SelfServiceDashboard-TM
# One-command setup
./setup.sh
# Install Ollama (interactive)
./scripts/install-ollama.sh
# Start development environment
./scripts/start-development.sh
# Open http://localhost:3000- Natural Language to Dashboard: Describe what you want, AI creates it
- Ollama Integration: Local LLM for privacy and speed
- Streamlit Dashboards: Interactive, professional dashboards
- Real-time Generation: Watch your ideas come to life
- PygWalker Integration: Drag-and-drop data visualization
- Multiple Data Sources: Excel files, REST APIs, databases
- Terminal Manager Optimized: Built for operational data
- Real-time Performance: No timeouts, smooth interactions
- Zero Configuration: Works out of the box
- Hot Reload: All services support development mode
- Comprehensive Scripts: Health checks, deployment, reset
- Cross-Platform: macOS, Linux, Windows (WSL)
SelfServiceDashboard-TM/
βββ setup.sh # π― One-command setup
βββ package.json # π¦ Workspace configuration
βββ .env.example # π§ Environment template
βββ docker-compose.yml # π³ Optional Docker setup
β
βββ frontend/ # βοΈ React Frontend
β βββ src/components/
β β βββ AIDashboardGenerator.js # π€ AI dashboard component
β β βββ LoadingStates.js # π Shared loading components
β βββ src/StandaloneChart.js # π Main visualization component
β
βββ ai-backend/ # π§ AI Backend (Python/Flask)
β βββ app.py # π Flask server
β βββ config.py # βοΈ Configuration management
β βββ requirements.txt # π Python dependencies
β βββ install.sh # π§ Auto setup script
β βββ test_connection.py # π Ollama connection test
β
βββ simple-backend/ # π§ Simple Backend (Node.js)
β βββ (existing backend) # π‘ REST API endpoints
β
βββ scripts/ # π οΈ Management Scripts
β βββ start-development.sh # π Start dev environment
β βββ start-production.sh # π Start production mode
β βββ health-check.sh # π System health verification
β βββ install-ollama.sh # π¦ Ollama installation helper
β βββ reset-project.sh # π Clean project reset
β
βββ docs/ # π Documentation
β βββ SETUP.md # π Detailed setup guide
β βββ TROUBLESHOOTING.md # π§ Common issues & solutions
β βββ API.md # π AI backend API docs
β
βββ generated-dashboards/ # π Runtime generated dashboards
- Node.js 16+ and npm 8+
- Python 3.8+ and pip3
- Git (recommended)
- Ollama (for AI features)
3000- Frontend (React)5246- Simple Backend (Node.js)5247- AI Backend (Python/Flask)8501+- Generated Streamlit dashboards11434- Ollama (if installed)
- Setup Guide - Detailed installation and configuration
- Troubleshooting - Common issues and solutions
- API Documentation - AI backend API reference
npm run start # Start development environment
npm run health # Run health checks
./scripts/health-check.sh # Detailed system health checknpm run start:prod # Start production environment
npm run build:frontend # Build frontend for productionnpm run reset # Reset project (interactive)
./scripts/reset-project.sh --full # Full reset
./scripts/reset-project.sh --quick # Quick resetcd ai-backend
./install.sh # Setup Python environment
./test_connection.py # Test Ollama connection
python app.py # Start AI backend directly"Create a sales performance dashboard with regional comparisons"
"Build an operational efficiency dashboard with KPIs and uptime metrics"
"Generate a financial overview with profit margins and cost analysis"
"Show fuel volume analysis with environmental impact metrics"
- Interactive Charts: Plotly-powered visualizations
- Real-time Data: Live connection to your data sources
- Professional Styling: Terminal Manager branding
- Export Options: Multiple formats supported
- Responsive Design: Works on all devices
The project includes comprehensive health monitoring:
# Quick health check
./scripts/health-check.sh
# Development mode check
./scripts/health-check.sh --dev-mode
# Setup mode check (during installation)
./scripts/health-check.sh --setup-modeMonitors:
- β System requirements (Node.js, Python, etc.)
- β Project structure and files
- β Environment setup (virtual envs, dependencies)
- β Ollama installation and connectivity
- β Port availability
- β Service health (in dev/prod mode)
Optional Docker setup for containerized deployment:
# Start with Docker Compose
docker-compose up
# Development with hot reload
docker-compose -f docker-compose.dev.yml upCopy .env.example to .env and customize:
# AI Backend Configuration
OLLAMA_URL=http://localhost:11434
AI_BACKEND_PORT=5247
OLLAMA_MODEL=llama3
# Frontend Configuration
REACT_APP_AI_BACKEND_URL=http://localhost:5247
# Development Configuration
NODE_ENV=development
LOG_LEVEL=info- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Make your changes
- Run tests:
./scripts/health-check.sh - Commit changes:
git commit -m 'Add amazing feature' - Push to branch:
git push origin feature/amazing-feature - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Issues: Report bugs or request features in GitHub Issues
- Documentation: Check docs/ for detailed guides
- Health Check: Run
./scripts/health-check.shfor diagnostics
- PygWalker - Drag-and-drop visualization engine
- Ollama - Local LLM infrastructure
- Streamlit - Dashboard generation framework
- React - Frontend framework
- Flask - Backend API framework
π― Built for Terminal Manager Operations | π Powered by AI | π» Ready for Production