Interface for exploring community vibrancy data for Montana towns and census designated places
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 51 commits ahead, 2 commits behind coffeeAndCodeMSO:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
data
scripts
server
source-data
.babelrc
.env.example
.gitignore
.sequelizerc
NOTES.md
README.md
package-lock.json
package.json
webpack.common.js
webpack.dev.js
webpack.prod-deploy.js
webpack.prod-local.js
webpack.prod.js

README.md

Montana Explorer

Web interface for exploring Montana municipalities, school districts and counties - showing boundaries and statistical info. Inspired by Seattle Boundaries and Census Reporter.

Build requirements

Needs a Mapbox public token key. Using dotenv, token is stored in MAPBOX_API_TOKEN. See .env.example.

Project components:

Project structure

  • app/ - Frontend React app
    • /components/ - React components
      • App.jsx - Wrapper
      • layers.js - config file for map layers
      • DataManager.js - non-display class for managing app data w/ Turf.js
        • handles lat/long within calculation
      • LocationForm.jsx - React component for entering location of interest
        • collects address, geocodes, passes to DataManager
      • DistrictMap.jsx - React component for displaying interest point inside appropriate boundaries
    • /css/
    • /js/ - Other JS files
    • /geodata/ - Geojson boundary data
  • server/ - backend Express API app
  • scripts - Scripts for data collection/processing (e.g. converting source shapefiles to geojson)
  • source-data/ - Raw data for data processing scripts
  • data/mt-vitality-metrics.bak - Text dump of Postgres database used to feed backend API (used for xfer)

References:

Inspiration

References for setting up react development environment with webpack/Babel:

Deployment references