Display information from Hydra software in a web interface.
- run
npm install
to install application development dependencies - configure the application
- run
grunt
from the install directory
- run
src/lib/pre-install
to setup config.ini - configuration options are defined in
src/lib/configure.inc.php
MOUNT_PATH
is the base url for the application
-
SCSS files (
*.scss
,!_*.scss
) in thesrc/htdocs/css
directory are compiled. -
Path is configured in
gruntconfig/config.js
:
cssPath: [
'src/htdocs/css',
'node_modules/hazdev-webutils/src'
]
-
JS files (
*.js
) in thesrc/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
}
From root of project, run:
docker build -t project-skeleton:version .
-
Run the container using the tag
docker run -it -p 8000:8881 project-skeleton:version
-
Connect to running container in browser
docker-machine env default \ | grep HOST \ | sed s/.*tcp/http/g \ | awk -F: '{print $1":"$2":8000"}' \ | xargs open