Name Last Update
client Loading commit data...
.gitignore Loading commit data...
README.md Loading commit data...
env-template Loading commit data...
index.js Loading commit data...
package-lock.json Loading commit data...
package.json Loading commit data...

ChatGPT Server

Installation

npm install on the root and /client directory.

Create ENV Variables

Create an .env file in the root directory of your application.
Duplicate the env-template and rename to .env

In the .env file, define the environment variables you want to use in your application. ex.

    API_KEY="sk-xxxxxxxx"
    API_ORG="org-xxxxxxx"
    SERVER_URL="http://localhost:3080/"

Run server and client

root --> `node index.js`

client --> `npm run dev`