Skip to content

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

Notifications You must be signed in to change notification settings

bobby-didcoding/django-chatgpt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

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 [email protected]: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

Watchers

Forks

Releases

No releases published

Packages

No packages published