- Add a
.envfile to the root of the project with the following content:
OPENAI_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Note: You can get your own API key from OpenAI.
- Install dependencies:
npm install- Start server:
Run in production mode:
npm run build
npm startOr run in development mode:
npm run dev