Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 1018 Bytes

README.md

File metadata and controls

29 lines (22 loc) · 1018 Bytes

Description

Custom chatGPT interface. Client: React + TypesScript + Tailwind, Back: Node.js

Environment Variables Setup Guide

  1. Create a .env.local file in the server root directory of the project if it doesn't already exist.

  2. In the .env.local file, define the following environment variables and assign them the required values:

    MongoDB's connection string

    DB_URL=mongodb+srv://your-username:[email protected]/your-database-name

    Secret keys for JWT token generation

    1. JWT_ACCESS_SECRET=your-access-secret-key
    2. JWT_REFRESH_SECRET=your-refresh-secret-key

    SMTP server settings (for sending email)

    1. SMTP_HOST=smtp.your-email-provider.com
    2. SMTP_PORT=587
    3. [email protected]
    4. SMTP_PASSWORD=your-email-password

    API key for accessing the OpenAI service

    OPENAI_API_KEY=your-openai-api-key

  3. Save the .env.local file.