A chatbot that helps answer questions regarding Duke curriculums and events.
Website Link: https://devils-codex.azurewebsites.net/
- Frontend
cd frontend
npm install
npm run dev
-
The application is then hosted on
localhost:5173 -
Backend
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
fastapi dev main.py
- Agent on bash
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
cd agent
python agent.pycd devils-codex/agent
PYTHONPATH=. pytest testsIf you're deploying on vcm, change the vcm base url in frontend/.env.production. You can change the link to the url / ip address of the server you are hosting it on, if using GCP or Azure for deployment.
Commands to deploy:
cd TemplateProject # You can rename this, just make sure the current directory has the docker compose file
# Change vcm link to your vcm in `docker-compose-vcm.yml` file, then run:
sudo docker compose -f docker-compose-vcm.yml up --build -dDeploying on gcp with http
sudo docker compose -f docker-compose.yml --profile http up --build