Day 1 – Project Idea
I decided to build an AI Quiz Generator that can create quiz questions based on a topic entered by the user. The goal of this project was to learn how to integrate AI APIs into a web application and create an interactive learning tool.
Day 2 – Building the UI
I created the basic structure of the project using HTML and CSS.
I designed a clean interface with:
A heading
An input box for entering the topic
A button to generate the quiz
A result area to display the question and answer.
I also added hover effects and card styling to make the interface look modern and user-friendly.
Day 3 – Adding JavaScript Logic
I added JavaScript to make the application interactive.
When the user clicks the Generate Question button:
The program reads the topic entered by the user.
It checks if the input field is empty.
If empty, it shows a message asking the user to enter a topic.
Day 4 – Integrating AI
I connected the project with the Gemini API provided by Google.
The application sends a request to the API with a prompt asking it to generate:
One quiz question
The correct answer
The response from the AI is then displayed on the webpage.
Day 5 – Testing and Deployment
I tested the application with different topics to ensure it generates questions correctly.
After testing, I uploaded the project to GitHub and deployed it using GitHub Pages so the app can run online.
🚀 Final Result
The final project is a simple AI-powered quiz generator that allows users to quickly create quiz questions for learning and practice.