A web application that displays estimates for the probability and volume of debris flows that may be produced by a storm in a recently burned area.
Install php
$ brew install php56 --with-pdo-pgsql
To begin working with the project
npm install
to install application development dependenciesgrunt
from the install directorysrc/lib/pre-install
to setup config.inisrc/lib/configure.inc.php
MOUNT_PATH
is the base url for the application*.scss
, !_*.scss
) in the src/htdocs/css
directory are compiled.Path is configured in gruntconfig/config.js
:
cssPath: [
'src/htdocs/css',
'node_modules/hazdev-webutils/src'
]
*.js
) in the src/htdocs/js
directory are compiled.Path is configured in gruntconfig/config.js
:
jsPath: {
// DIRECTORY: EXPORT_PATTERN,
# export all files in these directories in htdocs/js/bundle.js
# for use in testing
'src/htdocs/js': '*/*.js',
'node_modules/hazdev-webutils/src': '**/*.js',
# add to path, but don't export
'node_modules/other-module/dist': null
}
This application is deployed via the landslides-website
project.
Build the project, then copy the files to the landslides-website project (assuming they are checked out in parallel folders):
grunt builddist
cp -r dist/htdocs/{index.php,detail.php,css,images,js,README.md} ../landslides-website/src/htdocs/hazards/postfire_debrisflow/.