This is a Django-based application I built as my final year project while in school, that generates roadmaps using OpenAI's powerful language model.
Before running this application, ensure you have the following installed:
- Python 3.6+
- Django
- OpenAI Python library
- Clone this repository to your local machine:
git clone https://github.com/CodeWithClinton/django-roadmap-generator.git
-
Create and activate your virtual environment
pip install virtualenvwrapper-win mkvirtualenv venv
-
Navigate into the project directory:
cd personalized_learning
- Install dependencies:
pip install -r requirements.txt
Obtain an API key from OpenAI by signing up at https://openai.com.
Once you have your API key, create a .env file in the root directory of the project.
Add your OpenAI API key to the .env file:
OPENAI_API_KEY=your_openai_api_key
- Apply Migrations
python manage.py migrate
- Run Development Server
python manage.py runserver
Visit http://127.0.0.1:8000/ in your web browser to access the application.