This project is for helping folks learn about the risks created by various activities in the context of the COVID-19 pandemic.
Users load the website and can search for an activity. If this is their first search, they are also prompted to fill out a risk-profile (that stays on their computer, not shared). Each activity has a risk-score along with some content about that risk-score. Some activities also alow you to use Google Maps (Places) data to see busy-times for a specific place. The additional profile data is used to possibly modify the score (for age), but to generally provide other information.
We are currently (June 2020) working on “Phase 2” of our data, which will be much more region-aware, offering different scores and recommendations based on the current status of your region (State).
Work is coordinated via Github Issues, on our Slack (covid-19risktool.slack.com), and on synchronous video meetings (Zoom, generally Monday and Thursday nights EDT). Email an introduction to info@covidcanidoit.com and we can get you set up with the slack and meetings.
Git, github, and technical fork/branch management is a little out of scope here, but we can help coordinate via slack.
This project uses nodejs
, yarn
, and vue-cli
, so to get started you should have nodejs and yarn installed. We recommend asdf
as your version manager:
This is a from-scratch installation. Hopefully you can copy/paste bits of ths at a time into a terminal. If you have brew, asdf, nodejs, or yarn, then you can skip those parts.
# Install brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
# Install asdf and gnupg
brew install asdf
brew install gnupg
echo '. $(brew --prefix asdf)/asdf.sh' >> ~/.zshrc # Add asdf to path
source ~/.zshrc # Load Zsh config to get path (new terminals get it too)
# Install asdf-nodejs
brew install coreutils
asdf plugin-add nodejs https://github.com/asdf-vm/asdf-nodejs.git
bash ~/.asdf/plugins/nodejs/bin/import-release-team-keyring
# Now that we have asdf-nodejs, lets set up the actual project. If you haven't
# cloned the project you should do that now, and then cd into the project
# directory. This requires your github account to be setup up with ssh
git clone git@github.com:covidcanidoit/covidcanidoit.git
cd covidcanidoit
# Use the .tool-versions file to install the right nodejs version
asdf install
# Install yarn (this is specific to this nodejs version)
npm install -g yarn
# Finally! Install the project dependencies
yarn install
# Make sure you are up to date with your git branch
# Then update dependencies
yarn install
# Compile and hot-reload for development!
yarn serve # Then open up http://localhost:8080
# Optional: Deploy to staging! Builds app and uploads to Firebase Hosting
yarn deploy-staging
# Optional: Deploy Firebase db rule changes
# The rules are defined in firebase.rules.json
yarn deploy-db-rules
# Run your tests
yarn test:unit # ... we don't have any of these yet
yarn test:e2e # uses cypress / headless-chrome
# Lint (and fix) cruft
yarn lint
This project is hosted on Firebase, using both Firebase Hosting (for compiled/static content) and the Firebase Realtime Database (for the activities database and other dynamic content).
yarn build
compiles vue components and assets into .js filesutils/
directoryccidi-staging
that does all of the same things, which is nice for testing infrastructure and major database changesAuthor: covidcanidoit
Live Demo: https://covidcanidoit.com/
GitHub: https://github.com/covidcanidoit/covidcanidoit
#vuejs #vue #javascript #vue-js