Giter Club home page Giter Club logo

calpoppy's Introduction

Swanton Chat Bot

A chatbot web app for the Swanton Virtual Assistant. Its purpose is to answer historical and cultural questions about Swanton Pacific Ranch.

See it live

Features include:

  • A simplistic chat interface where users send messages to the Swanton Virtual Assistant
  • FAQs that direct visitors toward interesting historical stories about the ranch.
  • A simple interactive map to learn about different locations on the ranch.

Getting Started

  1. Clone this repo: https://github.com/EdikusRex/CalPoppy.git
  2. Navigate to folder: cd CalPoppy
  3. Install dependencies: npm install
  4. Start the backend server (see section below)
  5. Start the development server (in a new terminal in the main directory): npm start
  6. Open the app in your browser: http://localhost:3000

Running the backend

(Note that python may have to be replaced with python3)

  1. Navigate to folder: cd flask-server
  2. 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

On Mac/Linux:

  1. Create a virtual environment: python -m venv venv
  2. Activate the virtual environment: source venv/bin/activate
  3. Install the requirements.txt file: pip install -r requirements.txt or python -m pip install -r requirements.txt
  4. Run the server: flask run

On Windows:

  1. Create a virtual environment: python -m venv venv
  2. Activate the virtualenv: venv\Scripts\activate
  3. Install the requirements.txt file: pip install -r requirements.txt
  4. 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
  5. Run the server: flask run

Updating the Front End

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.

  1. Check out the gcloud config branch: git checkout gcloud-config
  2. Pull the src folder from master into gcloud-config: git checkout master -- src
  3. 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 committed

    • git commit -m "Pulled Master frontend"
    • git push

calpoppy's People

Contributors

ebarruel avatar edikusrex avatar lomccoy avatar swantonpoppycp avatar mathurma avatar mjwesolo avatar papachang07 avatar thimask avatar vincentvilo avatar nickaspiras avatar vincentpheng avatar bradleyhewitt avatar sindhusrivats avatar aj40 avatar psandhu101 avatar rhtakaha avatar soderdrew avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.