Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A simple app that demonstrate how to implement ChatGPT into a Django app

Resources

Stars

19 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages