fix
Showing
1 changed file
with
23 additions
and
0 deletions
README.md
0 → 100644
| 1 | # ChatGPT Server | ||
| 2 | |||
| 3 | ## Installation | ||
| 4 | |||
| 5 | npm install on the root and /client directory. | ||
| 6 | |||
| 7 | ## Create ENV Variables | ||
| 8 | |||
| 9 | Create an .env file in the root directory of your application. | ||
| 10 | Duplicate the env-template and rename to .env | ||
| 11 | |||
| 12 | In the .env file, define the environment variables you want to use in your application. ex. | ||
| 13 | |||
| 14 | API_KEY="sk-xxxxxxxx" | ||
| 15 | API_ORG="org-xxxxxxx" | ||
| 16 | SERVER_URL="http://localhost:3080/" | ||
| 17 | |||
| 18 | ## Run server and client | ||
| 19 | |||
| 20 | root --> `node index.js` | ||
| 21 | |||
| 22 | client --> `npm run dev` | ||
| 23 |
-
Please register or sign in to post a comment