A gamified learning platform built with React Native and Expo, featuring student, teacher, and parent portals with comprehensive quiz, study features, and AI-powered learning.
Follow these steps to get the project running on your local machine.
- Install dependencies
npm install
-
Start the development server
npx expo start
-
Open on your device
- Android: Scan the QR code using the Expo Go app.
- iOS: Scan the QR code using the Camera app (opens in Expo Go).
- Emulator: Press
afor Android Emulator orifor iOS Simulator.
- Student Login: Avatar selection and profile creation
- Profile Customization: Choose from 8 unique avatars
- Class Selection: Select your class (1-12)
- Persistent Login: Stay logged in across sessions
- Unique Student ID: Automatically generated ID for parent linking
- Personal Stats Display:
- Total XP (Experience Points)
- Coins earned
- Current streak (consecutive days)
- Subject Navigation: Quick access to all subjects based on class
- Daily Challenge: Featured challenge with gradient button
- Badge Preview: View earned and locked badges
- Quick Actions: Access to leaderboard, achievements, and challenges
- Interactive flashcard system
- Card flip animation for answers
- Progress tracking (Known, Review, Remaining cards)
- Mark cards as "Known" or "Needs Review"
- XP rewards: 5 XP per card
- Reset functionality
- Completion celebration with confetti
- Multiple choice questions (4 options)
- Instant answer feedback:
- β Green highlight for correct answers
- β Red highlight for wrong answers
- Progress tracking bar
- Score calculation and display
- Rewards:
- 10 XP per correct answer
- 2 Coins per correct answer
- Badge unlock system
- Results screen with performance summary
- 20-second countdown per question
- Auto-advance on timeout
- Visual timer with color warnings:
- Green: >10 seconds
- Yellow: 5-10 seconds
- Red: <5 seconds
- Shuffled questions (max 10 questions)
- Enhanced rewards:
- 15 XP per correct answer
- 3 Coins per correct answer
- Total time tracking
- Performance-based results
- Badge collection system
- Progress tracking for locked badges
- Badge categories:
- Quick Learner (Fast quiz completion)
- Perfect Score (100% accuracy)
- Study Streak (Consecutive days)
- Quiz Master (Multiple quizzes completed)
- Colored progress bars
- Badge unlock modal with celebration
- Global ranking system
- Top 3 podium display with medals (π₯π₯π₯)
- Student rankings with:
- Avatar display
- XP points
- Current streak
- Rank position
- Personal rank highlighting
- Subject-specific learning
- Subject statistics:
- Questions completed
- Best score
- Study time
- Access to all three learning modes per subject
- Clean, modern UI with subject icons
- Customization Store: Buy accessories with earned coins
- Categories:
- Hats (Party Hat, Crown, Wizard Hat, Graduation Cap)
- Glasses (Cool Shades, Nerd Glasses)
- Backgrounds (Rainbow, Stars, Fire)
- Frames (Gold Frame, Diamond Frame)
- Rarity System: Common, Rare, Epic, Legendary items
- Pricing: 40-300 coins based on rarity
- Purchase History: Track owned items
- Earn Coins Guide: Tips on earning more coins
- Challenge Types:
- Weekly Challenges (7-day duration)
- Monthly Challenges (30-day duration)
- Special Events (limited time)
- Sample Challenges:
- Math Week Champion (10 quizzes with 80%+)
- Science Explorer (20 flashcards)
- Perfect Streak (7-day streak)
- Quiz Master (50 quizzes monthly)
- All-Round Scholar (90%+ in all subjects)
- Rewards System:
- XP rewards: 150-2000 XP
- Coin rewards: 30-500 coins
- Progress Tracking: Visual progress bars
- Countdown Timer: Days remaining display
- Completion Badges: Special markers for completed challenges
- Teacher Login: PIN-based authentication (4 digits)
- Create Account: New teacher registration
- Teacher Selection: Choose from existing teachers
- Secure PIN: Numeric PIN validation
- Class Selector: Switch between classes 1-12
- Interactive Tabs: Visual selection of active class
- Student Count: Total students in selected class
- Average Score: Class performance metric
- Quizzes Taken: Total quiz attempts
- Active Students: Students who have taken quizzes
- Top Performer Display: Best student showcase with:
- Trophy icon
- Student name
- Total XP
- Current streak
- Student List: Complete class roster with:
- Avatar display
- Student names
- XP points
- Streak days
- Top 3 medals (π₯π₯π₯)
- Sorted by XP (highest to lowest)
- Subject Overview Grid: All subjects for selected class
- Performance Metrics:
- Average score per subject
- Total attempts
- Color-coded progress bars:
- Green: β₯70%
- Yellow: 50-69%
- Red: <50%
- "No data yet" for subjects without attempts
- PDF Upload Section: Upload and generate quizzes (Coming Soon)
- Quiz List: View generated quizzes
- Empty States: User-friendly messaging when no data
- Parent Login: PIN-based authentication linked to child
- Create Account: Register as parent with child's Student ID
- Secure Access: 4-digit PIN protection
- Child Linking: Connect to student profile using unique ID
- Profile Display: Child's avatar, name, and class
- Quick Stats Card:
- Total XP earned
- Current streak
- Beautiful gradient card design
- Performance Metrics:
- Quizzes Taken
- Average Score (%)
- Minutes Studied
- Subjects Practiced
- Period Selection: View weekly or monthly data
- Top Subjects: Display child's strongest subjects
- Subject icons
- Average score with green progress bar
- Number of attempts
- Needs Improvement: Highlight weak areas
- Orange-themed cards
- Performance metrics
- Quiz attempt count
- Smart Suggestions:
- Keep up the streak
- Focus on weak subjects
- Celebrate achievements
- Action-oriented tips: Help parents support learning
- Real-time Activity Feed: View all child activities
- Quiz completions with scores
- Study sessions
- Achievements unlocked
- Daily challenges completed
- Activity Details:
- Subject-specific performance
- XP and coins earned per activity
- Time spent on each activity
- Time ago indicators
- Activity Types: Quiz, Study, Achievement, Daily Challenge
- Empty State: Helpful messages when no activity
- Daily Summary Notifications: Automatic updates on child's daily progress
- Achievement Alerts: Instant notifications when child earns badges
- Low Performance Warnings: Alerts when scores drop below 50%
- Streak Milestones: Celebrate consecutive learning days (7+ days)
- Quiz Completion Updates: Notifications for each quiz completed
- Notification Management:
- Mark individual notifications as read
- Mark all as read
- Filter by all/unread
- Visual unread indicators
- Smart Notification Types:
- π Daily Summary
- π Achievement
- π Low Performance
- π₯ Streak Milestone
- β Quiz Completed
- Clean Modern Design: Consistent with web app
- White Card Layouts: Clean backgrounds with subtle borders
- Color Coding:
- Purple: XP and primary actions
- Orange: Streaks and secondary actions
- Green: Success states
- Blue: Information
- Red: Errors and warnings
- Rounded Corners: Modern 2xl rounded corners
- Icon System: Lucide React Native icons
- Responsive Layout: Optimized for mobile screens
- File-based Routing: Expo Router for seamless navigation
- Tab Navigation: Easy switching between features
- Safe Areas: Edge-safe layouts for all devices
- Back Navigation: Consistent back button behavior
- Loading States: Smooth transitions
- Empty States: Helpful messages when no data
- Error Handling: User-friendly error messages
- Toast Notifications: Success/error feedback
- Smooth Animations: Card flips, progress bars, celebrations
- Context API: Global app state (AppContext)
- Custom Hooks:
useBadges: Badge management and unlockinguseApp: Access to app stateuseAsyncStorage: Persistent storage
- Sample Questions: Pre-loaded quiz questions
- Subjects Database: All subjects for classes 1-12
- Avatars: 8 unique avatar options
- Badge System: Comprehensive achievement tracking
- useMemo Optimization: Efficient data filtering
- Lazy Loading: Load data as needed
- Efficient Re-renders: Optimized component updates
- Reusable UI Components:
- Button
- Input (with backspace fix)
- Card
- StatCard (with colored variants)
- SubjectCard
- AvatarDisplay
- BadgeUnlockModal
- Shared Components: Consistent across app
β
Student Login & Registration
β
Avatar Selection
β
Class Selection (1-12)
β
Student Dashboard with Stats
β
Study Mode (Flashcards)
β
Quiz Mode (MCQ Practice)
β
Timed Quiz (Challenge)
β
Achievements & Badges
β
Leaderboard
β
Subject-specific Learning
β
XP & Coins System
β
Streak Tracking
β
Daily Challenge
β
Avatar Shop (NEW)
β
Weekly & Monthly Challenges (NEW)
β
Teacher Login & Registration
β
PIN Authentication
β
Teacher Dashboard
β
Class Selection (1-12)
β
Student Management
β
Class Analytics
β
Subject Performance Tracking
β
Top Performer Display
β
Student Rankings
β³ Quiz Management (Coming Soon)
β³ PDF Upload & Quiz Generation (Coming Soon)
β³ AI-Powered Quiz Generator (Planned)
β³ Assignment & Homework Module (Planned)
β³ Export Reports (PDF/Excel) (Planned)
β
Parent Login & Registration
β
PIN-based Secure Access
β
Child Profile Linking with Student ID
β
Performance Dashboard
β
Strengths & Weaknesses Analysis
β
Weekly/Monthly Progress View
β
Smart Recommendations
β
Real-time Activity Monitoring (NEW)
β
Notification System (NEW)
β
Daily Progress Updates (NEW)
β
Achievement Alerts (NEW)
β
Low Performance Warnings (NEW)
β³ Weekly Progress Reports (Email/SMS) (Planned)
β³ Parent-Teacher Messaging (Planned)
-
XP (Experience Points):
- Study Mode: 5 XP per card
- Quiz Mode: 10 XP per correct answer
- Timed Quiz: 15 XP per correct answer
-
Coins:
- Quiz Mode: 2 coins per correct answer
- Timed Quiz: 3 coins per correct answer
-
Streaks: Track consecutive learning days
- Quick Learner
- Perfect Score
- Study Streak
- Quiz Master
- More badges unlock as you progress
- Global XP-based ranking
- Visual podium for top 3
- Personal rank highlighting
- Streak display
- Shop System: Spend coins on cosmetics
- Rarity Tiers: Common β Rare β Epic β Legendary
- Item Categories: Hats, Glasses, Backgrounds, Frames
- Visual Feedback: Owned items marked with checkmark
- Coin Economy: Earn through quizzes, spend in shop
- Weekly Challenges: Reset every 7 days
- Monthly Challenges: Long-term goals
- Special Events: Limited-time competitions
- Progressive Rewards: Higher rewards for difficult challenges
- Visual Progress: Colored progress bars
- Competitive Elements: Class vs Class (planned)
- Framework: React Native with Expo
- Routing: Expo Router (file-based)
- Styling: NativeWind v4 (Tailwind CSS)
- Language: TypeScript
- Icons: Lucide React Native
- State Management: React Context API
- Storage: AsyncStorage
- UI Components: Custom component library
mobile/
βββ app/ # Expo Router pages
β βββ (auth)/ # Authentication screens
β β βββ role-selection.tsx # Choose Student/Teacher/Parent
β β βββ student-login.tsx # Student login & signup
β β βββ teacher-login.tsx # Teacher login & signup
β β βββ parent-login.tsx # Parent login & signup (NEW)
β βββ (dashboard)/ # Dashboard screens
β β βββ student-dashboard.tsx
β β βββ teacher-dashboard.tsx
β β βββ parent-dashboard.tsx # (NEW)
β β βββ subject.tsx
β βββ (features)/ # Feature screens
β βββ achievements.tsx
β βββ leaderboard.tsx
β βββ study-mode.tsx
β βββ quiz-mode.tsx
β βββ timed-quiz.tsx
β βββ daily-challenge.tsx
β βββ avatar-shop.tsx # (NEW)
β βββ weekly-challenges.tsx # (NEW)
β βββ parent-notifications.tsx # (NEW)
βββ components/
β βββ shared/ # Shared components
β β βββ StatCard.tsx
β β βββ SubjectCard.tsx
β β βββ AvatarDisplay.tsx
β βββ ui/ # Base UI components
β βββ Button.tsx
β βββ Input.tsx
β βββ Card.tsx
β βββ Label.tsx
βββ contexts/
β βββ AppContext.tsx # Global state (updated with Parent support)
βββ data/
β βββ avatars.ts # Avatar data
β βββ subjects.ts # Subject definitions
β βββ sampleQuestions.ts # Quiz questions
βββ hooks/
β βββ useBadges.ts # Badge logic
β βββ useAsyncStorage.ts # Storage hook
βββ lib/
β βββ utils.ts # Helper functions
β βββ api.ts # API calls
βββ types/
βββ index.ts # TypeScript types (ParentProfile, ActivityLog, Notification added)
- Clean & Modern: Minimalist design with focus on usability
- Consistent: Matching web app design language
- Intuitive: Easy navigation and clear CTAs
- Engaging: Gamification elements keep users motivated
- Accessible: Clear typography and color contrast
- Mobile-First: Optimized for touch and small screens
- β Parent Monitoring System: Real-time activity tracking and notifications
- β Student ID System: Unique IDs for parent-child linking
- β Activity Logging: All student activities tracked for parent viewing
- β Smart Notifications: Daily summaries, achievements, and performance alerts
- β Parent Portal Added: Complete parent dashboard with child tracking
- β Avatar Shop: Customization store with coin-based purchases
- β Weekly & Monthly Challenges: Competitive challenges with rewards
- β Complete UI redesign matching web app
- β Fixed backspace input issue
- β Added Teacher Dashboard features
- β Implemented all three learning modes
- β Added Quiz Management section
- β Fixed React hooks errors
- β Enhanced badge unlock system
- β Improved leaderboard design
- β Fixed navigation safety (canGoBack pattern)
- π AI-Powered Quiz Generator: Upload PDFs β Auto-generate MCQs and flashcards
- π Adaptive Learning Engine: Track weak topics and adjust difficulty
- π Offline Mode: Download quizzes and sync progress later
- β³ Voice-Based Learning: Text-to-speech and speech-to-text support
- β³ Live Quiz Battles: Real-time multiplayer quizzes (like Kahoot)
- β³ Doubt Solver: AI chatbot + teacher messaging hybrid
- β³ Skill Tree System: Visual progression tree for each subject
- β³ Assignment Module: Teachers assign homework with deadlines
- β³ Export Reports: PDF/Excel reports for parent-teacher meetings
- β³ Cloud Sync: Firebase/Supabase for multi-device access
- β³ Multilingual Support: Tamil, Hindi, English
- β³ Anti-Cheat System: Randomized questions, time anomaly detection
- β³ AR Learning: 3D visualizations for science concepts
- β³ Emotional AI: Detect frustration and adapt difficulty
- AI Quiz Generator: Game-changing feature for teachers
- Adaptive Learning: Personalizes difficulty based on performance
- Parent Dashboard: β COMPLETED - Differentiates from competitors
- Offline Mode: Critical for rural India
- Voice Learning: Accessibility + younger students
- Live Battles: Social learning engagement
- Doubt Solver: 24/7 AI support
- Skill Tree: Gamification 2.0
- Custom Avatars: β COMPLETED - Coin economy value
- Weekly Challenges: β COMPLETED - Competition & motivation
- All student and teacher data is stored locally using AsyncStorage
- Quiz questions are pre-loaded from sample data
- Subjects automatically adjust based on selected class (1-12)
- Badge unlocking is event-driven based on achievements
- XP and coins accumulate across all activities
Made with β€οΈ for education