This project was bootstrapped with React Chatbot kit on the frontend.
The backend is developedin Node.js and uses OpenAI's Assistant API.
In the project directory, you can run:
Runs the server. Open http://localhost:3001 to view the different endpoints. Note that the actual URL for the server should be defined in the REACT_APP_API_URL of your .env file.
Launches the React frontend. Open http://localhost:3000
Launches the server using nodemon so that it will restart whenever you change code while developing.
Uses concurrently to launch both the server and the frontend.
Builds react front-end
Builds react front-end and deploys to github. Note that if you use this script you should edit the remote github URL to yours and possibly define GH_TOKEN locally if you are using token based authentication.
You can copy your OpenAI key here directly for local development
I am using Azure to deploy the server and store the OpenAI key remotely. You might not need this. Make sure to modify the app.js file accordingly.
Where you want to deploy the server. I recommend http://localhost:3001 for development.