Test Maker Pro is a web application built with Flask that allows users to generate tests using ChatGPT, sign up, log in, save tests, and retrieve saved tests.
- Get Test: Generate a test using ChatGPT with specified parameters.
- Sign Up: Create a new user account.
- Login: Log into an existing user account.
- Save Test: Save a generated test to the database.
- Get Tests: Retrieve a list of saved tests for a specific user.
- Get Test Info: Retrieve detailed information about a specific saved test.
- Clone the repository:
git clone https://github.com/your_username/Test-Maker-Pro.git
- Install dependencies:
pip install -r requirements.txt
- Set up MySQL database:
- Create a database named
test_maker_pro
. - Update
mydb
configuration inapp.py
with your MySQL credentials.
- Run the application:
python app.py
The application will be accessible at http://localhost:5000/.
- Get Test:
/getTest
(POST) - Sign Up:
/signup
(POST) - Login:
/login
(POST) - Save Test:
/saveTest
(POST) - Get Tests:
/getTests
(POST) - Get Test Info:
/getTestInfo
(POST)
- Use the provided API endpoints for the desired functionality.
- Ensure proper JSON format for requests and responses.
- Flask
- Flask-CORS
- OpenAI GPT-3
- MySQL Connector
-
login Table
- userId
- username
- password
-
tests Table
- testId
- userId
- testName
- gottenCorrect
-
questions Table
- questionId
- testId
- question
- explanation
-
answerChoices
- answerChoiceId
- questionId
- answerChoice
- correctAnswer
This project is licensed under the MIT License - see the LICENSE file for details.