CleverPen is a Flask-based blogging platform integrated with OpenAI's GPT 3.5 model. Created during my early software development journey, this project provided a valuable learning experience. I gained proficiency in Flask, the Jinja templating engine, and integrating third-party APIs into applications.
Make sure you have the following installed on your system:
- Python 3
- Pip (Python Package Installer)
-
Clone the Repository:
git clone https://github.com/nicholasikiroma/CleverPen.git cd CleverPen
-
Create a Virtual Environment:
python3 -m venv venv
-
Activate the Virtual Environment:
-
On Windows:
venv\Scripts\activate
-
On macOS/Linux:
source venv/bin/activate
-
-
Install Dependencies:
pip install -r requirements.txt
-
Set Up Environment Variables:
Create a
.env
file in the root directory and add your environment variables.SECRET_KEY=your_secret_key API_KEY=api_key_provided_by_openAI
-
Run the App:
flask run
Your app will be accessible at http://localhost:5000.
Happy coding! 🚀