React Math Test Generator 🧮
This React application utilizes the ChatGPT API to generate math test questions in LaTeX format. It allows you to easily create custom math tests with varying difficulty levels and question types. The generated questions can be exported and used for educational purposes, assessments, or practice exams.
Features ✨ ⭐ Seamless integration with the ChatGPT API for generating math test questions. ⭐ Customizable question parameters such as difficulty level, question type, and number of questions. ⭐ Automatic generation of LaTeX formatted math questions. ⭐ Real-time preview of generated questions. ⭐ Export feature to save the generated questions in a convenient LaTeX file.
Getting Started 🚀 To get started with the React Math Test Generator, follow these steps:
- Clone the repository:
git clone https://github.com/your-username/react-math-test-generator.git
. - Navigate to the project directory:
cd react-math-test-generator
. - Install the dependencies:
npm install
. - Obtain an API key from the ChatGPT API provider.
- Rename the
.env.example
file to.env
and update theREACT_APP_API_KEY
variable with your API key. - Start the development server:
npm start
.
Usage 📝
- Open your browser and navigate to
http://localhost:3000
. - Adjust the desired settings for difficulty level, question type, and the number of questions.
- Click the "Generate Test" button to trigger the generation of math test questions.
- The generated questions will be displayed in LaTeX format along with a real-time preview.
- To export the generated questions, click the "Export" button. The questions will be saved as a LaTeX file on your device.
Dependencies 📦 The React Math Test Generator relies on the following dependencies:
- React: JavaScript library for building user interfaces.
- Axios: Promise-based HTTP client for making API requests.
- PropTypes: Runtime type checking for React props.
- MathJax: JavaScript library for rendering LaTeX equations.
Please refer to the package.json
file for the specific versions of these dependencies.
Contributing 🤝 Contributions to the React Math Test Generator are welcome. If you encounter any issues, have suggestions, or would like to contribute enhancements, please submit them to the project's repository.
When contributing, please ensure to follow the existing coding style and submit detailed pull requests.
License 📄
The React Math Test Generator is licensed under the MIT License. You can find more details in the LICENSE
file.
Acknowledgements 🙏 This application utilizes the ChatGPT API provided by OpenAI. The LaTeX rendering is powered by MathJax.
Enjoy generating math test questions effortlessly with the React Math Test Generator! If you have any questions or need further assistance, feel free to reach out. Happy testing! 🎉