ua-snap / mapvue

MIT License
2 stars 1 forks source link

mapvue

Simple OSS framework for interactive, narrative tours of geospatial data.

Build Setup

Uses nodejs@~8.5, npm@~6.4.

Local development

# install dependencies
npm install

# serve with hot reload at localhost:8088
export PORT=8088
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

For detailed explanation on how the project is organized and how webpack is organized, checkout the guide and docs for vue-loader.

Environment variables used during the build

If these variables are set in your environment, they'll be used in the application. Default values are found in config/dev.env.js and config/prod.env.js.

Deploying

cd /path/to/mapvue
# Check your enviroment variables first here
npm run build
cd dist && aws s3 sync . s3://mapventure.org

Some maintenance notes

When updating the yearly Fire map, you need to look for and adjust some hardcoded date ranges in both the AK_Fires_Graph and also the repo mv-aicc-fire-shim to ensure the chart updates correctly.