This is a web application that will tell you what phase your county is in for the Washington Safe Start program (COVID-19) based on the zip code you enter.
This works by using the Google Maps API to convert your zip code to a county and then scraping the https://coronavirus.wa.gov website to determine what phase of the program you are in.
React, Node, Express, Google Maps API, Cheerio for web scraping, Mocha for unit testing and hosted on Heroku
To see this live in action you can click here.
- Clone this repo to your local environment.
- cd into the covid-phase-identifier folder.
- Run
npm install
. - cd into the client folder.
- Run
npm install
. - cd into the covid-phase-identifier folder.
- Run
npm run dev
to start up the client and server and run in development mode.
- Clone this repo to your local environment.
- cd into the covid-phase-identifier folder.
- Run
npm install
. - cd into the client folder.
- Run
npm install
. - Edit the client .env file to have your Google API key with the variable: REACT_APP_GEOCODER_API_KEY.
- Edit the server .env file to contain the following variables: NODE_ENV, PORT and API_KEY.
- Push your app up to Heroku:
- Sign up for a free Heroku account.
- Run
heroku local web
. - Run
git add .
. - Run
git commit -m "commit for Heroku
. - Run
heroku login
and enter your login credentials. - Run
heroku create
. - Run
heroku push master
.
- From the CLI, run
heroku open
to start your app. - Enter in your z