Learn how AI was used to build a modern learning platform
Features β’ Learning Guide β’ Architecture β’ AI Prompts β’ Contributing
This is NOT the source code of the HSB Quiz application. Instead, this is a learning resource that documents:
- π€ How AI (Google Gemini) was used to develop the application
- π The architecture and design decisions
- π‘ Effective prompts for AI-assisted development
- π¨ UI/UX design patterns and implementation
Live Demo: Experience the actual application at myhsb.netlify.app
The HSB Quiz application demonstrates modern web development practices:
| Mode | Description | Time Limit |
|---|---|---|
| π§ Practice | Unlimited questions, immediate feedback | None |
| β° Exam | Timed assessment (20/40/60 questions) | 15-45 min |
| π¬ AI Chat | Direct conversation with AI about IT topics | None |
- Google Gemini AI powered responses
- Context-aware question explanations
- Smart suggestion system
- Markdown formatting support
- Dark/Light Mode - Auto-detects system preference
- Responsive Design - Works on all devices
- Smooth Animations - Professional feel
- Progressive Web App - Install as mobile app
- 400+ Questions across 11 IT chapters
- Difficulty Levels - Easy, Medium, Hard
- Progress Tracking - Auto-save functionality
- Detailed Results - Review wrong answers
- π Students learning web development
- π¨βπ» Developers exploring AI-assisted coding
- π« Educators building learning platforms
- π Entrepreneurs creating EdTech products
-
AI-Assisted Development
- How to prompt AI effectively for code generation
- Best practices for code review with AI
- Debugging strategies using AI
-
Modern Web Architecture
- Single-page application patterns
- Local storage for state management
- Service Worker for offline support
-
UI/UX Implementation
- CSS custom properties for theming
- Responsive design without frameworks
- Accessibility considerations
-
API Integration
- Google Gemini API usage
- Error handling and fallbacks
- Rate limiting strategies
π Read the Full Learning Guide β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β HSB Quiz System β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β βββββββββββββββ βββββββββββββββ βββββββββββββββ β
β β Practice β β Exam β β AI Chat β β
β β Mode β β Mode β β Mode β β
β ββββββββ¬βββββββ ββββββββ¬βββββββ ββββββββ¬βββββββ β
β β β β β
β ββββββββββββββββββΌβββββββββββββββββ β
β βΌ β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β Core Quiz Engine (app.js) β β
β β β’ Question shuffling (Fisher-Yates) β β
β β β’ State management β β
β β β’ Timer system β β
β β β’ Progress tracking β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β β
β ββββββββββββββββββΌβββββββββββββββββ β
β βΌ βΌ βΌ β
β βββββββββββββ βββββββββββββ βββββββββββββ β
β β Local β β Gemini β β Service β β
β β Storage β β API β β Worker β β
β βββββββββββββ βββββββββββββ βββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
π Read the Full Architecture Guide β
This project was developed with extensive AI assistance. Here are some effective prompts used:
Create a modern quiz interface with:
- Glassmorphism design
- Dark/light mode support using CSS variables
- Smooth transitions and micro-animations
- Mobile-responsive layout
- Vietnamese language support
Implement a quiz shuffle system that:
- Uses Fisher-Yates algorithm for true randomness
- Caches shuffled options per question
- Maintains consistency during session
- Handles edge cases gracefully
myhsb.netlify.app/
βββ README.md # This file
βββ LICENSE # MIT License
βββ docs/
β βββ LEARNING_GUIDE.md # How to learn from this project
β βββ ARCHITECTURE.md # System design documentation
β βββ AI_PROMPTS.md # Collection of AI prompts used
β βββ FEATURES.md # Detailed feature documentation
βββ examples/
β βββ ai-integration/ # AI API integration patterns
β βββ quiz-logic/ # Quiz engine code samples
β βββ theme-system/ # Dark/light mode implementation
βββ assets/
βββ screenshots/ # Application screenshots
-
Explore the Live Demo
- Visit myhsb.netlify.app
- Try all three modes: Practice, Exam, AI Chat
- Notice the UI/UX details
-
Study the Documentation
- Start with LEARNING_GUIDE.md
- Review the ARCHITECTURE.md
- Try the prompts in AI_PROMPTS.md
-
Experiment with Examples
- Check the
examples/folder - Try modifying the code snippets
- Build your own variations
- Check the
- Use this as a case study for AI-assisted development
- Adapt the quiz format for your subject
- Reference the architecture for your projects
We welcome contributions! Here's how you can help:
- π Documentation - Improve explanations, add translations
- π‘ Examples - Add more code samples
- π Issues - Report documentation errors
- β Star - Show your support!
This project is licensed under the MIT License - see the LICENSE file for details.
|
NGΓ TRUNG KIΓN π kngo.netlify.app π§ kiennt@hsb.edu.vn π« Hanoi School of Business and Management (HSB) π± Faculty: Non-Traditional Security |
π If you find this helpful, please give it a Star! β
π Happy Learning! π
Made with β€οΈ for students