This repo contains the embedded UI of Hawkular Metrics (github)
This project was generated with Angular CLI version 1.1.3.
From metrics directory, Run ng serve --base-href="/" for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.
You need to have a running Hawkular Metrics server on http://localhost:8080 to allow server communciation. Eventually you can configure it in src/environments/environment.ts.
Note that in release builds (ie. with -prod flag), the prod environment is loaded, url becomes relative to serving host and base-href is /hawkular/metrics/ui/.
Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the -prod flag for a production build.
Hawkular Metrics pulls the dist directory of hawkular-ui from github. To test UI changes within metrics:
- Checkout the
releasebranch and merge your work in. Unlike other remote branches,releasecontains thedistdirectory. Or alternatively you can removedistfrom.gitignoreand commit, but make sure you won't send a pull request with that commit. - Build this project
ng build -prod --aot=false(the -prod flag is important asprodenvironment is configured to use the hosting server for metrics url) - Open the
pom.xmlofhawkular-metrics-api-jaxrsand edit properties:hawkular-ui.git.repoto your GIT repo (example for hawkular-ui cloned in/workof local filesystem:scm:git:/work/hawkular-ui/.git)hawkular-ui.git.branchto your local branch that containsdist
- Rebuild Hawkular Metrics, enjoy.
- Switch to the
releasebranch and mergemasterin (be sure to fetch/rebase upstream first). - Run
ng build -prod --aot=false - Commit and push to upstream's release
Run ng test to execute the unit tests via Karma.
Run ng e2e to execute the end-to-end tests via Protractor.
Before running the tests make sure you are serving the app via ng serve.
To get more help on the Angular CLI use ng help or go check out the Angular CLI README.