A comprehensive sales dashboard with advanced analytics, transaction management, and AI-powered insights built with React, TypeScript, and Supabase.
- Real-time Analytics: Live sales data, revenue tracking, and performance metrics
- Transaction Management: Complete transaction lifecycle management (read-only for security)
- Product Analytics: Top-selling products, inventory insights, and performance tracking
- Location Analysis: Geographic sales distribution and location-based insights
- Time-based Reports: Daily, weekly, and monthly sales trends
- Sales Velocity: Track product movement and demand patterns
- Customer Segmentation: High, medium, and low-value customer analysis
- Peak Sales Hours: Identify optimal selling periods
- Comprehensive Reporting: Multi-dimensional business intelligence
- AI Chat Assistant: Natural language queries for business insights
- Smart Recommendations: AI-driven product and sales suggestions
- Predictive Analytics: Forecast trends and identify opportunities
- Row Level Security (RLS): Secure data access policies
- Role-based Access: Admin and user permission management
- Audit Logging: Complete activity tracking and monitoring
- React 18: Modern React with hooks and context
- TypeScript: Type-safe development
- Tailwind CSS: Utility-first styling
- Vite: Fast development and build tool
- Supabase: Backend-as-a-Service with PostgreSQL
- Edge Functions: Serverless API endpoints
- Real-time Subscriptions: Live data updates
- PostgreSQL: Robust relational database
- Row Level Security: Database-level security policies
- Triggers & Functions: Automated data processing
- Node.js 18 or higher
- npm or yarn package manager
- Supabase account and project
- Clone the repository:
git clone https://github.com/Dheolarh/DataAI.git
cd DataAI- Install dependencies:
npm install- Set up environment variables:
cp .env.example .env
# Add your Supabase credentials
VITE_SUPABASE_URL=your_supabase_url
VITE_SUPABASE_ANON_KEY=your_supabase_anon_key
GEMINI_API_KEY=your_google_api_key
# Google Cloud
GOOGLE_PROJECT_ID=your_google_poject_ID
GOOGLE_LOCATION=your_gcp_project_region
# Weaviate embedding system
WEAVIATE_URL=your_weviate_rest_endpoint_url
WEAVIATE_API_KEY=your_weviate_api_key- Run the development server:
npm run dev- Open http://localhost:5173 in your browser
npm run dev- Start development servernpm run build- Build for productionnpm run preview- Preview production buildnpm run test:transactions- Test transaction utilitiesnpm run test:admins- Test admin utilities
This project is licensed under the MIT License.
- Built with Supabase for backend infrastructure
- Styled with Tailwind CSS
- Powered by React and TypeScript
DataAI Sales Dashboard - Empowering businesses with intelligent sales analytics and comprehensive transaction management.