Skip to content

shaunak-badani/devils-codex

Repository files navigation

Devil's codex

A chatbot that helps answer questions regarding Duke curriculums and events.

Team Member: Shaunak Badani & Roxanne Wang

How to run

  • 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.py

Running tests:

cd devils-codex/agent
PYTHONPATH=. pytest tests

Deployment

VCM

If 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 -d

Deploying on gcp with http

sudo docker compose -f docker-compose.yml --profile http up --build

About

A chatbot designed to answer questions about Duke events, curriculum and FAQs for prospective students

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors