A chatbot web app for the Swanton Virtual Assistant. Its purpose is to answer historical and cultural questions about Swanton Pacific Ranch.
Features include:
- A simplistic chat interface where users send messages to the Swanton Virtual Assistant
- Messages that can be converted from speech to text
- FAQs that direct visitors toward interesting historical stories about the ranch.
- A simple interactive map to learn about different locations on the ranch.
Legacy repos:
- https://github.com/calpoly-csai/swanton
- https://github.com/EdikusRex/CalPoppy
- https://github.com/ebarruel/CalPoppy-Archive
- Clone this repo:
https://github.com/swantonpoppycp/CalPoppy.git
- Navigate to folder:
cd CalPoppy
- Install dependencies:
npm install
- Start the backend server (see section below)
- Start the development server (in a new terminal in the main CalPoppy directory):
npm start
- Open the app in your browser:
http://localhost:3000
(Note that
python
may have to be replaced withpython3
)
- Navigate to folder:
cd flask-server
- Update submodule if KGQA is empty:
git submodule update --init --recursive
If the submodule won't update, try removing it and then adding it again:
git rm -r --cached KGQA
git submodule add https://github.com/mathurma/KGQA KGQA
- Create a virtual environment:
python -m venv venv
- Activate the virtual environment:
source venv/bin/activate
- Install the requirements.txt file:
pip install -r requirements.txt
orpython -m pip install -r requirements.txt
- Run the server:
flask run
- Create a virtual environment:
python -m venv venv
- Activate the virtualenv:
venv\Scripts\activate
- Install the requirements.txt file:
pip install -r requirements.txt
- Manually install flask and encorewebsm
- pip install flask
- pip install -U setuptools wheel
- pip install -U spacy
- python -m spacy download en_core_web_sm
- Run the server:
flask run
Note: Ensure to only pull the src folder, changes were made to flask-server, package.json, and other files to make the project compatible to deploy to Google Cloud App Engine.
- Check out the gcloud config branch:
git checkout gcloud-config
- Pull the src folder from master into gcloud-config:
git checkout master -- src
- Add, Commit, and push the changes to gcloud-config to trigger the Github Actions workflow to update the website on Google Cloud App Engine
git add src
You can run
git status
here to check that only files in src are the Changes to be committedgit commit -m "Pulled Master frontend"
git push