The Helion Stackato Console UI is written in JavaScript and runs in a Docker container. It also uses Angular 1.4.x to maintain compatibility with Angular UI Bootstrap.
For more implementation details, please see the following pages:
Nginx is used to serve static files while a Golang based REST API backend. Another container hosts the Postgres database for session and service instance management.
This project depends on the following:
- Docker
- Node.js - to easily install Node.js modules
- portal-proxy - Golang based REST API
- helion-ui-framework - reusable Angular-based UI components, Helion branding, assets, styles, theme files
Install Docker and clone the repositories listed above at the same level as this project.
See the README in the stratos-deploy
repo for details on how to develop against the Console.
docker logs stratos-ui
docker exec -it stratos-ui /bin/bash
or, from the stratos-deploy project
docker-compose run --rm ui bash
$ cd tools
$ npm test
$ cd tools
$ npm run update-webdriver
$ npm run e2e
By default tests will execute against the local machine's ip address. To run against, for example, the gulp dev instance use
$ npm run e2e -- --params.host=localhost --params.port=3100
$ cd tools
$ ./node_modules/.bin/gulp lint
This runs the unit tests and linting.
$ cd tools
$ npm run gate-check
Locally, run the following command to generate documentation in the docs/src
folder. You can then view the documentation by pointing your browser to the index.html
file of that docs/src
folder.
cd tools
./node_modules/.bin/jsdoc ../src/app ../src/*.js -r -d ../docs/src