Skip to content
This repository has been archived by the owner on Apr 11, 2023. It is now read-only.

Pong420/ChatGPT-Client

Repository files navigation

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.