To set up and run the project on your local machine, follow these steps:
First, pull the repository to your local machine:
git clone https://github.com/hicsail/aida-content-host.git
cd aida-content-host
Update the environment files with the required configurations:
- Navigate to
./client
and change.env-example
to.env
(you don't need to change theVITE_CHATBOT_URL
value) - Navigate to
./server/chatbot
and chage.env-example
to.env
, and update theOPENAI_API_KEY
value to your actual API key
Make sure Docker is installed and running on your local machine. You can verify this by running:
docker --version
If Docker is not installed, you can download it from Docker's official website.
Use the provided shell script to start the necessary services. You can run:
sh run.sh -a
Alternatively, to start specific services:
-
Chatbot Only
sh run.sh -c
-
Visualization Only:
sh run.sh -v
Once Docker services are running, open the following URLs in your browser:
- Chatbot: http://localhost:3000
- Visualization: http://localhost:3001
If you need to stop the running containers, use:
docker compose -f docker-compose-local.yml down