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_nameRun the following command to set up the environment:
./setup.shThis will:
- Create a Django project (if not already present).
- Move the
openai_helper.pyto the appropriate directory. - Build and start the Docker containers.
The Django development server will be available at:
-
Copy the
example.envfile to.env:cp example.env .env
-
Edit
.envto 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.