Need to spin up a quick image quiz for an exam? Look no further.
Welcome to Reuben's Image Quiz Generator! This project uses the Google Images SerpApi to generate an Image Quiz on the fly.
Before you begin, you will need to have the following tools installed on your computer:
- Python 3
- Flask
- SerpAPI
To install the project, follow these steps:
-
Clone the repository to your local machine:
$ git clone https://github.com/McCReuben/Image_Quiz.git
-
Navigate to the directory where the project was cloned and create a virtual environment:
cd Image_Quiz
python3 -m venv venv
-
Make a copy of the example environment variables file, inputing your SerpApi key
$ cp .env.example .env
-
Activate the virtual environment:
$ source venv/bin/activate
If using Windows Powershell, run:
$ . .venv/Scripts/activate
-
Install the dependencies (you may need to use
pip3
instead):$ pip install -r requirements.txt
To use the project, follow these steps:
- Run the Flask development server:
$ flask run
- Open your web browser and navigate to http://127.0.0.1:5000/ to access the application.
- Use the form on the page to generate a random fantasy character name. You can specify the length of the name and whether it should be male or female.
To contribute to the project, follow these steps:
- Fork the repository.
- Create a new branch for your changes.
- Make the changes and commit them to your branch.
- Push the changes to your fork.
- Open a pull request and describe the changes you have made.