Skip to content

berickson-usgs/hydra-web-display

 
 

Repository files navigation

hydra-web-display

Display information from Hydra software in a web interface.

Using the Generated Project

Getting Started

  • run npm install to install application development dependencies
  • configure the application
  • run grunt from the install directory

Configuration

  • 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

CSS

  • SCSS files (*.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

  • JS files (*.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
}

Docker

Building a container

From root of project, run: docker build -t project-skeleton:version .

Running container

  • 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
    

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 74.3%
  • PHP 19.0%
  • HTML 4.9%
  • Shell 1.6%
  • CSS 0.2%