Skip to content

the-react-dev/ask-chatgpt

Repository files navigation

Ask ChatGPT Demo

Setup

Add Enviroment File

Create a file called .env at the root of the project and add your openai api key to it.

VITE_OPENAI_SECRET=<your api key goes here>

Install

Run npm install to pull in all the project dependencies

npm i

Run the demo

This command will start the local development server, head over to localhost:5173 after to see the project up and running

npm run dev