This is an example pet name generator app used in the OpenAI API quickstart tutorial. It uses the Next.js framework with React.
- Docker Desktop 4.15
- Clone this repository
git clone https://github.com/ajeetraina/openai-quickstart-node
- Open app.js file and add API Keys
const openai = require('openai');
// Set your OpenAI API key
openai.apiKey = "YOUR_API_KEY";
- Building the Chat GPT Docker Image
docker build -t ajeetraina/chatbot-docker .
- Running the Chatbot container
docker run -d -p 8080:8080 ajeetraina/chatbot-docker
You should now be able to access the app at http://localhost:3000