- Docker & Docker Compose (Local Development with Docker only)
Clone or pull from the dev branch before you begin coding.
#cloning
git clone [email protected]:bobby-didcoding/django-chatgpt.git .
-
Create a .env file from .env.template
#Unix and MacOS cd backend && cp .env.template .env #windows cd sandbox && copy .env.template .env
-
Add your ChatGPT api key tha can be found here
Note: You will need to make sure Docker is running on your machine!
Use the following command to build the docker images:
docker-compose up -d --build
Alternatively, If you have make installed, you can run the following command:
make build
You should now be up and running!
- The web app is running on http://localhost:8000
This project is based on the official ChatGPT quick-start tutorial that can be found here
The Flask app that this Django app is based on can be found here