/ChatGPT-Client

Self hosted chatgpt web client

Primary LanguageTypeScript

ChatGPT Client

screenshot

Prerequisites

  • MongoDB
    • Using MongoDB Atlas
    • Or run docker-compose up -d to start a MongoDB server locally
  • OpenAI API key

Development

  1. Create .env.development.local at the project root. Copy the content from .env and replace the corresponding variables

  2. Install packages and setup

    npm ci
    npm run db
    
  3. Start development

    npm run dev
    
  4. Go to http://localhost:3000/admin and create a user. The admin page and related API only available in the development

  5. Go to http://localhost:3000/ and sign in.