Open KAIYI-HSU opened 1 year ago
Thanks! I'll add more to the readme, but for now here are some steps to run this locally:
Open up a terminal or shell on your machine. You will need node.js and git installed on your machine. If you have a mac, you can install these with homebrew.
brew install git
brew install npm
Once these are installed, navigate to the folder you want this project to exist in using the terminal. run the following commands:
git clone https://github.com/aditya-pethe/ui-chat.git
cd ui-chat
npm install
You will need an open ai api key as well to run this. You can do this two ways:
export OPENAI_API_KEY="your-key-here"
OR
OPENAI_API_KEY="your-key-here"
Then, you will want to create two terminal windows, and navigate to the ui-chat repository. You should be in the directory that contains client, server, and the package.json folder.
In one terminal, run npm run dev:server
This will run the backend server that handles user requests
In another terminal, runnpm run dev:client
This will build the client facing application for the chatbot
Then, navigate to http://localhost:3000/, and the app should be running there!
As I am not familiar with web development, can you please guide me on how to easily deploy a live server on my computer?