š¤ How to Build This App with AI & Deploy on GitHub
Follow these 6 simple steps ā no coding experience required. Use Claude, ChatGPT, or DeepSeek to generate the app, then host it for free on GitHub Pages.
⨠Choose your AI assistant
š§ Claude (Anthropic)
š DeepSeek
š¬ ChatGPT (GPT-4/3.5)
š GitHub Pages (free)
Each AI can generate a complete, self-contained HTML/CSS/JS quiz app from a simple prompt.
1 Write a clear prompt for the AI
Copy and paste this prompt into Claude, ChatGPT, or DeepSeek:
"Create a self-contained HTML/CSS/JS quiz app for STAT103 Statistical Thinking.
Include 20 multiple-choice questions per chapter (Ch 0: Introduction to Statistical Thinking,
Ch1: Data & Descriptive Statistics, Ch2: Probability & Distributions, Ch3: Statistical Inference,
Ch4: Study Design & Data Ethics). Add a dropdown to switch chapters, show score,
check answers, and reset. Make it mobile-friendly and visually clean.
Base questions on the textbook at https://szhang.quarto.pub/stat103/ and syllabus at https://rpubs.com/scsustat/stat103syllabus"
š” Pro tip: Provide the syllabus links to help AI generate realistic statistics questions.
2 Generate & test the HTML code
AI will produce a complete HTML document. Copy all the code. On your computer:
- Open a text editor (Notepad, VS Code, or TextEdit)
- Paste the code
- Save as index.html
- Double-click the file to test it in your browser
ā
The quiz should work immediately on your phone or computer.
3 Create a GitHub account & repository
1. Go to github.com and sign up (free).
2. Click the + icon ā New repository.
3. Name it (e.g., stat103-quiz-app). Keep it Public.
4. Click Create repository.
4 Upload your index.html file
In your new repository page:
- Click Add file ā Upload files
- Drag and drop your
index.html file
- Write a commit message like "Add STAT103 quiz app"
- Click Commit changes
5 Enable GitHub Pages (free hosting)
1. Go to repository Settings (tab at top).
2. In left sidebar, click Pages.
3. Under "Branch", select main (or master) and /(root) folder.
4. Click Save.
5. After 1-2 minutes, your app is live at:
https://<your-username>.github.io/<repository-name>/
š Example: If your username is "johndoe" and repo is "stat103-quiz-app", URL becomes:
https://johndoe.github.io/stat103-quiz-app/
6 Share & update your app
Share the GitHub Pages link with classmates or instructors. To update:
- Ask AI to modify the app (e.g., "add a dark mode" or "add 20 more questions")
- Copy the new code ā save as index.html again
- In GitHub, upload the new file (overwrite) ā commit
- Website updates automatically in 1-2 minutes
šÆ Example prompts to extend your app
⢠"Add a timer that shows how long it takes to complete the quiz."
⢠"Save the user's progress using localStorage so answers persist after refresh."
⢠"Generate 20 new realistic questions for Chapter 2 about probability distributions."
⢠"Add a progress bar showing how many questions have been answered."
⢠"Include a 'Show answers' button that reveals the correct answers."
ā” Quick Reference Card
ā¢
AI Tools: Claude, ChatGPT, DeepSeek ā paste prompt ā get HTML ā save as index.html
ā¢
GitHub: Create repo ā upload index.html ā Settings ā Pages ā branch: main ā Save
ā¢
Result: Free, mobile-friendly web app accessible anywhere
ā¢
Course Links: RPubs Syllabus |
STAT103 Textbook
š This entire app (quizzes + guide) was built with AI assistance ā and you can replicate it in under 10 minutes.