A simple starter code pack that uses React.js for the client and Node.js for the server with LangChainAI for API requests to OpenAI's ChatGPT
- Click
Use this repository
and make a new one on your account after which, clone it locally OR download the zip file - Head over to
./server
and fill in your OpenAI API key in.env
- Create a
.gitignore
file and enter.env
in the file to prevent your env variables from being pushed to your GitHub repo - In
./server/server.js
, edit the prompt template to what you wish cd client
and runnpm i
after which runnpm start
- Open another terminal and run the following commands,
cd server
and thennpm i
after which runnpm run dev
If you find any bugs or errors, feel free to raise an issue or even a pull request. I will fix it ASAP