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 repositoryand make a new one on your account after which, clone it locally OR download the zip file - Head over to
./serverand fill in your OpenAI API key in.env - Create a
.gitignorefile and enter.envin 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 clientand runnpm iafter which runnpm start- Open another terminal and run the following commands,
cd serverand thennpm iafter 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