This is a simple quote generator written in python/flask that generates original quotes using ChatGPT and a random background for the quote using Pexels API.
- Create a virtual environment with
python -m venv venv - Activate it with
venv\scripts\activate - Install required dependencies with
python -m pip install -r requirements.txt - Create a
.envfile in the root directory of your project. Add the following variables:
OPENAI_API_KEY='your_openai_api_key'
PEXELS_API_KEY='your_pexels_api_key'
SECRET_KEY='your_flask_secret_key'- Run server with
python app.py
- To get flask's secret key, you can use command line:
python -c "import os; print(os.urandom(24).hex())"