A comprehensive SvelteKit 5 application that provides an interactive math quiz platform for students. The app allows students to take various math quizzes with different difficulty levels and tracks their progress and scores.
The application uses four main tables:
git clone https://github.com/markritterman/sveltekit-math-quiz-app.git
cd sveltekit-math-quiz-app
bun install
cp .env.example .env
# Edit .env with your database credentials
bun run scripts/seed.ts
bun run dev
http://localhost:5173
to access the applicationThe seeded database includes test accounts:
[email protected]
/ student123
[email protected]
/ teacher123
[email protected]
/ admin123
bun run dev
- Start development serverbun run build
- Build for productionbun run preview
- Preview production buildbun run scripts/seed.ts
- Initialize/reset databasesrc/
āāā lib/
ā āāā components/ # Reusable Svelte components
ā āāā server/ # Server-side utilities
ā ā āāā auth.ts # Authentication logic
ā ā āāā db.ts # Database connection
ā ā āāā session.ts # Session management
ā āāā stores/ # Svelte stores
āāā routes/
ā āāā api/ # API endpoints
ā āāā dashboard/ # Dashboard pages
ā āāā quiz/ # Quiz taking interface
ā āāā login/ # Authentication pages
ā āāā register/ # User registration
āāā hooks.server.ts # SvelteKit hooks
MIT License - feel free to use this project for educational purposes.
This application is designed specifically for educational use, focusing on:
Built with ā¤ļø using SvelteKit 5, TypeScript, and MySQL.