MCQ Generator is a web-based tool designed to help users generate Multiple Choice Questions (MCQs) from text files effortlessly. The tool provides easy upload, automated question generation, and a simple login system with Google and email authentication.
- Automated MCQ Generation: Upload text files and automatically generate MCQs from your content.
- Firebase Authentication: Secure user authentication using Google Sign-In or email/password login. //has been disabled for a while
- User-friendly Interface: Intuitive and minimalistic design for easy navigation and quick access to functionalities.
- Responsive Design: Fully functional on various screen sizes and devices.
- Frontend Only: No backend required as Firebase handles all storage and authentication.
- Frontend: HTML, CSS, JavaScript
- Authentication: Firebase Authentication (Email/Password and Google Sign-In)
- Firebase Hosting: For deployment (optional, but recommended)
- Version Control: Git, GitHub
Follow these steps to set up the project locally.
Ensure that you have the following tools installed:
- A web browser (Chrome, Firefox, etc.)
- Internet connection to enable Firebase functionality
-
Clone the repository:
git clone https://github.com/your-username/mcq-generator.git cd mcq-generator
-
Firebase Setup:
- Create a Firebase project on Firebase Console.
- Enable Firebase Authentication with Email/Password and Google Sign-In.
- Obtain the Firebase config object from your Firebase project settings.
- Update the Firebase config object in the
index.html
file under the<script>
section:
const firebaseConfig = { apiKey: "YOUR_API_KEY", authDomain: "YOUR_AUTH_DOMAIN", projectId: "YOUR_PROJECT_ID", storageBucket: "YOUR_STORAGE_BUCKET", messagingSenderId: "YOUR_MESSAGING_SENDER_ID", appId: "YOUR_APP_ID", measurementId: "YOUR_MEASUREMENT_ID" };
-
Run the Application:
Open
index.html
in your preferred browser to view the application.
- Log in with either Google Sign-In or your registered Email/Password.
- Upload your text file containing the questions.
- Specify the number of MCQs you'd like to generate.
- Review and download the generated MCQs.
You will need to replace the Firebase configuration in the index.html
file with your own Firebase project details, obtained from the Firebase Console.
const firebaseConfig = {
apiKey: "YOUR_API_KEY",
authDomain: "YOUR_AUTH_DOMAIN",
projectId: "YOUR_PROJECT_ID",
storageBucket: "YOUR_STORAGE_BUCKET",
messagingSenderId: "YOUR_MESSAGING_SENDER_ID",
appId: "YOUR_APP_ID",
measurementId: "YOUR_MEASUREMENT_ID"
};
- MCQ Customization: Add options to manually edit or delete generated MCQs.
- Enhanced Question Types: Expand to other question types, such as True/False, Fill in the Blanks.
- Analytics Dashboard: Provide insights and analytics about generated questions.
- Dark Mode: Add a dark mode toggle for improved accessibility.
We welcome contributions! Feel free to fork this repository and create a pull request with your improvements.
- Fork the project.
- Create a new branch:
git checkout -b feature-branch
. - Make your changes and commit them:
git commit -m 'Add new feature'
. - Push to the branch:
git push origin feature-branch
. - Open a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
If you have any questions or suggestions, feel free to contact us.
- Email: [email protected]
- GitHub: gurusinghpal