@wyssenreichenbach/niviz
v0.0.6
Published
Snowpack Visualization
Readme
niViz - Snowpack Visualization
Welcome to niViz, an open source, browser based tool for visualiazing and editing measured or simulated snow profiles including auxiliary data (such as meteorological time series). Use it online at https://run.niviz.org or on your own server! Find more at https://niviz.org.
Setup
Ensure that Node.js and make are available on your system as well as bower (installed through npm):
$ node -v
v8.5.0
$ make -v
GNU Make 4.0Currently, it works properly with node 12.22.12 and npm 6.14.16 (Linux 4.4.0 x86_64).
Then run make dep to fetch and install all dependencies.
After this, make dist builds and compresses/minifies all applications.
Use an HTTP file server to access the built application (e.g.: cd dist; python3 -m http.server).
(The following commands are not maintained: make server starts a web server you can use for
development of the GUI; make build builds all applications).
At any time, you can run make purge to remove all downloaded dependencies completely.
Testing
You can run the tests for the visualization library and the GUI in Phantom JS (or a regular browser by visiting localhost at port 9876); additionally, the library tests can be run with Node.js or in the Node debugger.
$ make test # Run all tests in Phantom JS
$ make coverage # Compile test coverage in Phantom JS
$ make watch # Start karma on port 9876
$ make test-node # Run library tests in Node.js
$ make debug-node # Run library tests in Node.js debuggerDocumentation
Run make doc to generate the html API documentation in ./doc.
Setting up a website
If you want to run niViz hosted by an Apache server all requests (except actual file requests) need to be redirected towards index.html. Please add the following lines to your apache site configuration:
Publishing to npm
Run npm publish --unsafe-perm --access=public -> this builds niviz and publishes it to npmjs.com
