readme
Showing
2 changed files
with
16 additions
and
13 deletions
| ... | @@ -2,22 +2,21 @@ | ... | @@ -2,22 +2,21 @@ |
| 2 | 2 | ||
| 3 | ## Installation | 3 | ## Installation |
| 4 | 4 | ||
| 5 | npm install on the root and /client directory. | 5 | npm install on the root directory. |
| 6 | 6 | ||
| 7 | ## Create ENV Variables | 7 | ## Create ENV Variables |
| 8 | 8 | ||
| 9 | Create an .env file in the root directory of your application. | 9 | Create an .env file in the root directory of your application. |
| 10 | Duplicate the env-template and rename to .env | 10 | Duplicate the env-template and rename to .env |
| 11 | 11 | ||
| 12 | In the .env file, define the environment variables you want to use in your application. ex. | 12 | In the .env file, define the environment variables you want to use in your application. ex. |
| 13 | 13 | ||
| 14 | API_KEY="sk-xxxxxxxx" | 14 | API_KEY="sk-xxxxxxxx" |
| 15 | API_ORG="org-xxxxxxx" | 15 | API_ORG="org-xxxxxxx" |
| 16 | SERVER_URL="http://localhost:3080/" | 16 | SERVER_URL="http://localhost:3080/" |
| 17 | 17 | ||
| 18 | ## Run server and client | 18 | ## Run server |
| 19 | 19 | ||
| 20 | root --> `node index.js` | 20 | Run server on the root directory |
| 21 | |||
| 22 | client --> `npm run dev` | ||
| 23 | 21 | ||
| 22 | `node index.js` | ... | ... |
| 1 | # ChatGPT Client | ||
| 1 | # Getting Started with Create React App | 2 | # Getting Started with Create React App |
| 2 | |||
| 3 | This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). | 3 | This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). |
| 4 | 4 | ||
| 5 | ## Installation | ||
| 6 | |||
| 7 | npm install on the /client directory. | ||
| 8 | |||
| 5 | ## Available Scripts | 9 | ## Available Scripts |
| 6 | 10 | ||
| 7 | In the project directory, you can run: | 11 | In the /client directory, you can run: |
| 8 | 12 | ||
| 9 | ### `npm start` | 13 | ### `npm start` |
| 10 | 14 | ... | ... |
-
Please register or sign in to post a comment