ChatGPT AI-Pro Installation
Setting up local development
Set up ENV Variables
- Set up environment variable
.envfile in root and inside /client folder. In root, duplicate theenv-templatefile and rename it to.env. Inside the /client folder, create.envfile - In the root
.envfile, define the needed OpenAI environment variables in your application.
- Sign up here https://beta.openai.com/signup. You can use your Google or Microsoft account to sign up if you don't want to create using an email/password combination. You may need a valid mobile number to verify your account.
- Now, visit your OpenAI key page https://beta.openai.com/account/api-keys
- Create a new key by clicking the "Create new secret key" button.
-
You can Values should be a string, enclosed with
""Example :OPENAI_API_KEY=“sk-xxxxxxx” OPENAI_API_ORG=“org-xxxxxxxx” In the
.envfile of the client, define the SERVER_URL environment variable in your application.-
Name the variable starting with REACT_APP_ and Value must not enclosed with commas
""Example :REACT_APP_SERVER_URL=http://localhost:3080/
NPM Install and Run Application
Note: Prepare 2 Terminals.
- On the first terminal, run
npm installon root. After that runnode index.js - On the second terminal, run
npm installinside the /client. Then runnpm run start