Custom chatGPT interface. Client: React + TypesScript + Tailwind, Back: Node.js
-
Create a .env.local file in the server root directory of the project if it doesn't already exist.
-
In the .env.local file, define the following environment variables and assign them the required values:
DB_URL=mongodb+srv://your-username:[email protected]/your-database-name
- JWT_ACCESS_SECRET=your-access-secret-key
- JWT_REFRESH_SECRET=your-refresh-secret-key
- SMTP_HOST=smtp.your-email-provider.com
- SMTP_PORT=587
- [email protected]
- SMTP_PASSWORD=your-email-password
OPENAI_API_KEY=your-openai-api-key
-
Save the .env.local file.