ChatGPT clone using OpenAI API

This clone is made with React and Node and uses OpenAI API.


Make sure you have installed all of the following prerequisites on your development machine:

Environment variables setup example

MONGO_URI = mongodb://

Cloning The GitHub Repository

The recommended way to get ChatGPT clone is to use git to directly clone the repository:

$ git clone

Running Your Application

open terminal/bash in this repo and enter below commands to start the application

→ To start the server

$ node server

→ To start the client app

$ cd client
$ npm run dev
  • Your client application should run on port 3000 with the development environment configuration, so in your browser just go to http://localhost:5173

  • Your server application should run on port 8000, so in your browser just go to http://localhost:8000