Skip to content

DF791021/mathfuel

Repository files navigation

MathFuel

An adaptive math practice platform for Grade 1–2 students, featuring AI-powered hints, skill mastery tracking, and parent/teacher dashboards.

Features

  • Adaptive Practice Engine — Difficulty adjusts automatically based on student performance
  • Deterministic Answer Checking — Reliable, AI-independent validation for numeric, boolean, text, and choice answers
  • Scaffolded Hint System — Progressive, animated hints revealed one at a time
  • AI Tutor — Age-appropriate explanations and hints powered by LLM integration
  • Skill Mastery Model — Tracks progress per skill (not started → practicing → close → mastered)
  • Student Dashboard — Streaks, badges, recommended sessions, and mastery overview
  • Parent Dashboard — Child progress monitoring, strengths/weaknesses analysis, and session history
  • Visual Skill Map — Interactive domain → skill tree with mastery status
  • Gamification — Streaks, badges, celebrations, and confetti rewards
  • Custom Authentication — Email/password login with JWT sessions, forgot/reset password flows
  • Parent-Child Linking — Parents can link to and monitor multiple student accounts
  • Mobile-Optimized — Responsive design with touch-friendly targets and safe-area insets

Tech Stack

Layer Technologies
Frontend React 19, TypeScript, Vite, Tailwind CSS, Radix UI, Framer Motion
Backend Node.js, Express, tRPC 11, Drizzle ORM
Database MySQL
Auth bcrypt, JWT (jose)
AI LLM integration for hints and explanations
Payments Stripe
Email Resend
Testing Vitest

Project Structure

├── client/             # React frontend (pages, components, hooks, contexts)
├── server/             # Express + tRPC backend (routers, core utilities)
├── drizzle/            # Database schema and migrations
├── shared/             # Shared types and constants
├── scripts/            # Build and utility scripts
├── patches/            # pnpm dependency patches
├── vite.config.ts      # Vite configuration
├── vitest.config.ts    # Vitest configuration
├── drizzle.config.ts   # Drizzle ORM configuration
└── tsconfig.json       # TypeScript configuration

Getting Started

Prerequisites

Installation

# Install dependencies
pnpm install

# Set up environment variables
cp .env.example .env
# Edit .env with your DATABASE_URL and other required values

# Run database migrations
pnpm db:push

Development

pnpm dev

Build

pnpm build

Production

pnpm start

Scripts

Command Description
pnpm dev Start development server with live reload
pnpm build Build client (Vite) and server (esbuild) for production
pnpm start Run the production server
pnpm check Run TypeScript type checking
pnpm format Format code with Prettier
pnpm test Run unit tests with Vitest
pnpm db:push Generate and apply database migrations

License

MIT

About

An adaptive math learning mobile app for 1st grade students featuring AI-powered personalized learning, visual game-based exercises, parent/educator dashboards, and real-time progress tracking · Built with Manus

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors