Skip to content

Latest commit

 

History

History
67 lines (45 loc) · 1.54 KB

File metadata and controls

67 lines (45 loc) · 1.54 KB

ChatGPT Django Tutorial

ChatGPT Django Tutorial



Prerequisites



Repository

Clone or pull from the dev branch before you begin coding.

#cloning
git clone git@github.com:bobby-didcoding/django-chatgpt.git .



Environment variable and secrets

  1. Create a .env file from .env.template

    #Unix and MacOS
    cd backend && cp .env.template .env
    
    #windows
    cd sandbox && copy .env.template .env
    
  2. Add your ChatGPT api key tha can be found here



Fire up Docker:

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

Finished

You should now be up and running!



References

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