Skip to content

raunakwete43/QuizCrafter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 AI Quiz Generator: Turn PDFs into Interactive Quizzes! 🤖📚

Welcome to the AI Quiz Generator project, where learning meets innovation! This web application takes PDF documents and turns them into interactive multiple-choice quizzes. Test your knowledge on any topic with ease and get instant feedback on your score!

🌟 Star this repo if you like it and follow for more cool projects!


✨ Features

  • AI-Powered Quiz Generation: Upload a PDF, select a topic, and let the AI generate relevant quiz questions in seconds.
  • Interactive UI: Answer questions, get instant feedback, and track your progress.
  • Score Tracker: Get your final score after completing the quiz.
  • Built with FastAPI (Backend) & React (Frontend): A sleek combination of modern technologies.
  • TailwindCSS: Beautiful and responsive UI to ensure a smooth user experience.

🔧 Technologies Used

  • Backend:
    • FastAPI: For serving APIs that manage PDF uploads and question generation.
  • Frontend:
    • React.js: For building a responsive and user-friendly quiz-taking interface.
    • TailwindCSS: For a modern, customizable UI design.
  • AI:
    • AI Model for Quiz Generation: Automatically generates MCQs based on topics in a PDF file.
  • Database: No database required for this project—everything is processed in real-time.

🚀 How It Works

  1. Upload Your PDF: Simply upload a PDF document containing the information you want to quiz on.
  2. Select a Topic: Enter a topic (e.g., "IoT", "Machine Learning", etc.) to focus your quiz.
  3. Start Quiz: The app generates relevant multiple-choice questions based on your document.
  4. Answer Questions: As you progress through the quiz, answer the questions and see instant feedback on your answers.
  5. Get Your Score: At the end of the quiz, see your final score and review your answers.

📂 Project Setup

🛠️ Backend (FastAPI)

  1. Clone this repository:

    git clone https://github.com/raunakwete43/quizcrafter.git
    cd quizcrafter
  2. Install dependencies:

    pip install -r backend/requirements.txt
  3. Start the FastAPI server:

    cd backend
    uvicorn main:app --reload
  4. The backend will be running at http://localhost:8000.

💻 Frontend (React)

  1. Navigate to the frontend directory:

    cd frontend
  2. Install dependencies:

    npm install
  3. Start the Vite(React) development server:

    npm run dev
  4. The frontend will be running at http://localhost:3000.


📄 How to Use

  1. Upload PDF: Go to the homepage and click on the "Upload PDF" button.
  2. Enter a Topic: After uploading, type a topic (e.g., "Machine Learning") into the provided field.
  3. Start the Quiz: Click "Start Quiz" and wait for the quiz to load.
  4. Answer Questions: Choose your answers and move between questions using the "Back" and "Next" buttons.
  5. Submit: Click "Submit" to see your final score.

💡 Why Use This Project?

  • Effortless Learning: Automatically convert any PDF into a quiz with a single click.
  • Fast and Efficient: The AI quickly generates multiple-choice questions, saving you time.
  • Perfect for Students & Educators: Turn any document into an interactive learning tool.
  • Beautiful UI: The app’s UI is built with React and TailwindCSS, ensuring a smooth and delightful experience.

🎯 Contributing

We welcome contributions to make this project better! If you’d like to contribute, follow these steps:

  1. Fork the repo.
  2. Clone your fork: git clone https://github.com/raunakwete43/quizcrafter
  3. Make your changes and create a pull request with a detailed description of your contribution.

⚠️ NOTE

If you are hosting the backend and frontend separately or on different domains, ensure the frontend API requests point to the correct backend URL (for example, replace http://localhost:8000 with your hosted backend URL). This is important to ensure proper communication between the two components.

🌟 Support the Project

If you find this project useful, give it a ⭐️ and follow for more cool open-source projects!


📜 License

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


👋 Connect with Me


Thank you for checking out this project! ⭐

Feel free to star this repository and follow for more exciting projects!


About

AI Quiz Generator: Turn PDFs into Interactive Quizzes!

Resources

License

Stars

Watchers

Forks