This is a quick-start template for setting up a Django project with OpenAI integration. The project is containerized with Docker, allowing for easy setup and consistent deployment.
Check out the report on creating with Prototype on dev.to or YouTube.
Prototype was featured as a top project on Product Hunt.
Before starting, ensure you have:
- Docker and Docker Compose installed (latest versions recommended).
git clone https://github.com/vorniches/prototype your_app_name
cd your_app_name
Run the following command to set up the environment:
./setup.sh
This will:
- Create a Django project (if not already present).
- Move the
openai_helper.py
to the appropriate directory. - Build and start the Docker containers.
The Django development server will be available at:
-
Copy the
example.env
file to.env
:cp example.env .env
-
Edit
.env
to include your OpenAI API key:OPENAI_API_KEY=<your_openai_api_key>
-
Ensure the environment variables are loaded into Django's
settings.py
.
This project is licensed under the MIT License. See the LICENSE
file for details.