Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Source-Controller/react-chatgpt

Repository files navigation

ChatGPT clone using OpenAI API

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

Prerequisites

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

Cloning The GitHub Repository

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

$ git clone https://github.com/followDev/react-chatgpt.git

Environment variables React setup

create .env file in client/

VITE_API_URL=http://localhost:8000

Environment variables Node setup

create .env in root folder

OPENAI_API_KEY = YOU_API_KEY_HERE
MONGO_URI = mongodb://0.0.0.0:27017/chatGPT

Running Your Application

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

→ To start the server

$ npm run dev

→ To start the client app

$ cd client
$ npm run dev
  • Your client application should run on port 5137 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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /