This repository holds the code for STL florida case-study related pages
This platform is built using the Aurelia framework, which has a few prerequisites. To get started, follow the machine & application setup steps.
- Install NodeJS >= 4.x
- You can download it here.
- Install NPM 3.x
- Even though you may have the latest NodeJS, that doesn't mean you have the latest version of NPM. You can check your version with
npm -v
. If you need to update, runnpm install npm -g
.
- Even though you may have the latest NodeJS, that doesn't mean you have the latest version of NPM. You can check your version with
- Install Aurelia CLI
npm install aurelia-cli -g
- Install the project dependencies
npm install
The project structure is as follows:
- aurelia_project: Aurelia generated folder containing config (Check Configuration section for more details) and framework specific libraries
- scripts: Generated scripts from the build process
- src: The main application code with the following files and subfolders
- routes: Read more about how Aurelia Routing works here.
- Currently supported routes include:
- Special flood hazard zones: http://flux.land?risk=flood
- Storm surge extents: http://flux.land?risk=stormsurge
- Projected ground water table rise: http://flux.land?risk=groundwater
- Start the development server
npm start
This will start a dev server on http://localhost:9000- append /flood, /stormsurge or /groundwater to test respective layers
- Commit & push changes in master branch
- To generate a production build:
- Switch to staging branch:
git checkout gh-pages
- Merge changes:
git merge master
- Run
npm run-script stage
to build scripts bundle - Upload the following to the deployment destination protecting the structure:
- Switch to staging branch:
scripts/*
index.html
favicon.ico
- Issues are tracked on github.