Skip to content

Commit 839da35

Browse files
author
followDev
committed
readme typo error fixed
1 parent 644f657 commit 839da35

File tree

1 file changed

+19
-11
lines changed

1 file changed

+19
-11
lines changed

README.md

+19-11
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,36 @@
11
# ChatGPT clone using OpenAI API
2+
23
This clone is made with React and Node and uses OpenAI API.
34

4-
- get your api key from https://openai.com/api/
5+
- get your api key from https://openai.com/api/
56

67
## Prerequisites
8+
79
Make sure you have installed all of the following prerequisites on your development machine:
8-
* Git - [Download & Install Git](https://git-scm.com/downloads). OSX and Linux machines typically have this already installed.
9-
* Node.js - [Download & Install Node.js](https://nodejs.org/en/download/) and the npm package manager. If you encounter any problems, you can also use this [GitHub Gist](https://gist.github.com/isaacs/579814) to install Node.js.
10+
11+
- Git - [Download & Install Git](https://git-scm.com/downloads). OSX and Linux machines typically have this already installed.
12+
- Node.js - [Download & Install Node.js](https://nodejs.org/en/download/) and the npm package manager. If you encounter any problems, you can also use this [GitHub Gist](https://gist.github.com/isaacs/579814) to install Node.js.
1013

1114
## Cloning The GitHub Repository
15+
1216
The recommended way to get ChatGPT clone is to use git to directly clone the repository:
1317

1418
```bash
1519
$ git clone https://github.com/nisabmohd/ChatGPT.git
1620
```
17-
## Environment variables React setup
21+
22+
## Environment variables React setup
23+
1824
create .env file in client/
25+
1926
```
2027
VITE_API_URL=http://localhost:8000
2128
```
2229

23-
## Environment variables Node setup
30+
## Environment variables Node setup
31+
2432
create .env in root folder
33+
2534
```
2635
OPENAI_API_KEY = YOU_API_KEY_HERE
2736
MONGO_URI = mongodb://0.0.0.0:27017/chatGPT
@@ -32,22 +41,21 @@ MONGO_URI = mongodb://0.0.0.0:27017/chatGPT
3241
open terminal/bash in this repo and enter below commands to start the application
3342

3443
→ To start the server
44+
3545
```bash
36-
$ node server
46+
$ npm run dev
3747
```
3848

3949
→ To start the client app
50+
4051
```bash
4152
$ cd client
4253
$ npm run dev
4354
```
4455

56+
- Your client application should run on port 5137 with the _development_ environment configuration, so in your browser just go to [http://localhost:5173](http://localhost:5173)
4557

46-
47-
* Your client application should run on port 3000 with the *development* environment configuration, so in your browser just go to [http://localhost:5173](http://localhost:5173)
48-
49-
* Your server application should run on port 8000, so in your browser just go to [http://localhost:8000](http://localhost:3000)
50-
58+
- Your server application should run on port 8000, so in your browser just go to [http://localhost:8000](http://localhost:3000)
5159

5260
<img width="100%" src="img/home.png" />
5361
<img width="100%" src="img/chat.png" />

0 commit comments

Comments
 (0)