This project is built using Django, a high-level Python web framework that enables rapid development and clean, pragmatic design and also it's an introduction to openai
- Before running this project, you will need to have the following software installed:
- Python 4x | 3.x
- Django 4x | 3.x
- Django Rest Framework 4.x | 3.x
- PostgreSQL (or any other database supported by Django)
- API Key from https://platform.openai.com/
- Clone this repository: git clone https://github.com/lscavalcante/DjangoOpenAI.git
- Navigate to the project directory: cd [DjangoOpenAI]
- Create a virtual environment: python -m venv venv
- Activate the virtual environment: source venv/bin/activate
- Install the required packages: pip install -r requirements.txt
- Update the local settings file with your database and other configuration settings.
- Run the migrations: python manage.py migrate
- create a file .env and configure it
- Start the development server: python manage.py runserver
Web |
Result |
![](.github/web.png) |
![](.github/web_result.png) |
API |
Result |
![](.github/api.png) |
![](.github/api_result.png) |