Skip to content

kotobuki09/myhsb-learning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸŽ“ MyHSB Learning - AI-Powered Quiz System Showcase

HSB Logo

Learn how AI was used to build a modern learning platform

Live Demo Made with AI License

Features β€’ Learning Guide β€’ Architecture β€’ AI Prompts β€’ Contributing


πŸ“– About This Repository

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


✨ Features Showcase

The HSB Quiz application demonstrates modern web development practices:

🎯 Multiple Learning Modes

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

πŸ€– AI Assistant Integration

  • Google Gemini AI powered responses
  • Context-aware question explanations
  • Smart suggestion system
  • Markdown formatting support

🎨 Modern UI/UX

  • Dark/Light Mode - Auto-detects system preference
  • Responsive Design - Works on all devices
  • Smooth Animations - Professional feel
  • Progressive Web App - Install as mobile app

πŸ“š Content Features

  • 400+ Questions across 11 IT chapters
  • Difficulty Levels - Easy, Medium, Hard
  • Progress Tracking - Auto-save functionality
  • Detailed Results - Review wrong answers

πŸ“š Learning Guide

Who Is This For?

  • πŸŽ“ Students learning web development
  • πŸ‘¨β€πŸ’» Developers exploring AI-assisted coding
  • 🏫 Educators building learning platforms
  • πŸš€ Entrepreneurs creating EdTech products

What You'll Learn

  1. AI-Assisted Development

    • How to prompt AI effectively for code generation
    • Best practices for code review with AI
    • Debugging strategies using AI
  2. Modern Web Architecture

    • Single-page application patterns
    • Local storage for state management
    • Service Worker for offline support
  3. UI/UX Implementation

    • CSS custom properties for theming
    • Responsive design without frameworks
    • Accessibility considerations
  4. API Integration

    • Google Gemini API usage
    • Error handling and fallbacks
    • Rate limiting strategies

πŸ“– Read the Full Learning Guide β†’


πŸ— Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                    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 β†’


πŸ€– AI Prompts Collection

This project was developed with extensive AI assistance. Here are some effective prompts used:

UI Design Prompt Example

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

Feature Implementation Prompt

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

πŸ“ See All AI Prompts β†’


πŸ“ Repository Structure

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

πŸš€ Getting Started

For Learners

  1. Explore the Live Demo

    • Visit myhsb.netlify.app
    • Try all three modes: Practice, Exam, AI Chat
    • Notice the UI/UX details
  2. Study the Documentation

  3. Experiment with Examples

    • Check the examples/ folder
    • Try modifying the code snippets
    • Build your own variations

For Educators

  • Use this as a case study for AI-assisted development
  • Adapt the quiz format for your subject
  • Reference the architecture for your projects

🀝 Contributing

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!

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


πŸ‘¨β€πŸ’Ό Author

NGO TRUNG KIEN 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

About

MyHSB Learning - AI-Powered Quiz System

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published