An AI-powered adaptive learning platform designed for government exam preparation in India. Pathshala Coach provides personalized learning experiences with multilingual support, adaptive quizzes, AI-powered study assistance, and comprehensive progress tracking.
- Adaptive Learning System: 40/40/20 question distribution (beginner/intermediate/advanced)
- Multilingual Support: English, Hindi, Tamil, Bengali, and Kannada
- Diagnostic Testing: Personalized assessment to determine learning level
- Concept Reels: Short video explanations for quick concept learning
- Spaced Repetition Flashcards: SM-2 algorithm for optimal retention
- Learning Path: Dynamic learning paths based on user progress
- AI Sarthi: Context-aware chatbot powered by Google Gemini for study assistance
- AI Interview Coach: Practice interviews with real-time feedback on speech, eye contact, and fluency
- Error Pattern Recognition: AI analysis of common mistakes and weak areas
- Personalized Study Plans: AI-generated study plans based on diagnostic results
- Real-time Progress Tracking: Dashboard with XP, streaks, accuracy, and rankings
- Subject-wise Progress: Detailed analytics per subject and topic
- Weekly Activity Charts: Visual representation of study activity
- Performance Analytics: Track improvement over time
- Offline Mode: Download content for offline access
- PWA Support: Install as a Progressive Web App
- Responsive Design: Optimized for mobile, tablet, and desktop
- Data Saver Mode: Optimized for low-data environments
- Frontend: React 18, TypeScript, Vite
- UI Framework: Tailwind CSS, shadcn/ui, Framer Motion
- Backend: Firebase (Authentication, Firestore, Storage)
- AI Integration: Google Gemini API
- State Management: React Query, React Context
- Routing: React Router DOM v6
- Internationalization: react-i18next
- Deployment: Netlify
- Node.js 18+ and npm
- Firebase project with Authentication and Firestore enabled
- Google Gemini API key
git clone <repository-url>
cd pathshala-ai-coach-mainnpm installCreate a .env.local file in the root directory:
# Firebase Configuration
VITE_FIREBASE_API_KEY=your_firebase_api_key
VITE_FIREBASE_AUTH_DOMAIN=your_firebase_auth_domain
VITE_FIREBASE_PROJECT_ID=your_firebase_project_id
VITE_FIREBASE_STORAGE_BUCKET=your_firebase_storage_bucket
VITE_FIREBASE_MESSAGING_SENDER_ID=your_firebase_messaging_sender_id
VITE_FIREBASE_APP_ID=your_firebase_app_id
VITE_FIREBASE_MEASUREMENT_ID=your_firebase_measurement_id
# Gemini API
VITE_GEMINI_API_KEY=your_gemini_api_key- Create a Firebase project at Firebase Console
- Enable Authentication:
- Email/Password provider
- Google Sign-in
- Create Firestore Database (start in test mode for development)
- Enable Storage (optional, for future features)
- Copy your Firebase configuration to
.env.local
npm run devThe application will be available at http://localhost:8080
# Start development server
npm run dev
# Build for production
npm run build
# Preview production build
npm run preview
# Lint code
npm run lintpathshala-ai-coach-main/
βββ public/
β βββ videos/ # Concept video files
β βββ manifest.json # PWA manifest
β βββ sw.js # Service worker
βββ src/
β βββ components/ # Reusable UI components
β β βββ ui/ # shadcn/ui components
β β βββ ...
β βββ config/ # Firebase & Gemini configuration
β βββ hooks/ # Custom React hooks
β βββ i18n/ # Internationalization
β β βββ locales/ # Translation files
β βββ pages/ # Page components
β βββ services/ # API services & business logic
β βββ types/ # TypeScript type definitions
β βββ utils/ # Utility functions
βββ data/ # Question bank JSON files
βββ netlify.toml # Netlify deployment configuration
βββ package.json
- Questions distributed as 40% beginner, 40% intermediate, 20% advanced
- Dynamic difficulty adjustment based on performance
- Real-time feedback and explanations
- Optimal review intervals for flashcard retention
- Automatic scheduling based on performance
- Mastery tracking per topic
- AI Sarthi: Context-aware responses with user progress integration
- Interview Coach: Real-time speech analysis and feedback
- Study Plan Generation: Personalized plans based on weak areas
- Service Worker for offline functionality
- IndexedDB for local data storage
- Downloadable content for offline access
- Connect your repository to Netlify
- Configure build settings:
- Build command:
npm run build - Publish directory:
dist
- Build command:
- Add environment variables in Netlify dashboard
- Deploy
The netlify.toml file is pre-configured with:
- SPA routing redirects
- Security headers
- Cache optimization
- Service Worker support
- Chrome/Edge (latest)
- Firefox (latest)
- Safari (latest)
- Mobile browsers (iOS Safari, Chrome Mobile)
- Firebase Authentication for secure user management
- Environment variables for sensitive API keys
- Security headers configured in Netlify
- HTTPS enforced in production
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is proprietary and confidential.
For support, please contact the development team or open an issue in the repository.
- Advanced analytics dashboard
- Social features (leaderboards, study groups)
- Mobile app (React Native)
- Additional exam types (UPSC, Railway)
- Live classes integration
- Payment integration for premium features
Built with β€οΈ for Indian students preparing for government exams