This module provides a user interface for management functions in Metron.
curl --silent --location https://rpm.nodesource.com/setup_6.x | bash - && yum install -y nodejs
)Build Metron:
mvn clean package -DskipTests
Copy incubator-metron/metron-interface/metron-config/target/metron-config-METRON_VERSION-archive.tar.gz
to the desired host.
Untar the archive in the target directory. The directory structure will look like:
bin start_management_ui.sh web expressjs package.json server.js management-ui web assets (html, css, js, ...)
For production use, the contents of the ./web/management-ui
directory should be deployed to a web server with paths /api/v1
and /logout
mapped to the REST application url.
As an example, a convenience script is included that will install a simple expressjs webserver.
Then start the application with the script:
./bin/start_management_ui.sh Usage: server.js -p [port] -r [restUrl] Options: -p Port to run metron management ui [required] -r, --resturl Url where metron rest application is available [required]
The application will be available at http://host:4200 with credentials user/password
, assuming the default port is configured and the dev
profile is included when starting the REST application. See the REST application documentation for more information about security configuration for production.
The Management UI can also be started in development mode. This allows changes to web assets to be seen interactively.
Install the application with dev dependencies:
npm install
Start the application:
./scripts/start_dev.sh
The application will be available at http://localhost:4200/. The REST application url defaults to http://localhost:8080
but can be changed in the proxy.conf.json
file.
Install the application with dev dependencies:
npm install
Unit tests can be run with:
npm test
This projects bundles Font Awesome which is available under the SIL Open Font License. See http://fontawesome.io/license/ for more details.