Skip to content

Stratos: Web-based Console UI for Cloud Foundry

Notifications You must be signed in to change notification settings

hpcloud/stratos-ui

 
 

Repository files navigation

Helion Stackato Console UI

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:

System Requirements

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:

Installation

Install Docker and clone the repositories listed above at the same level as this project.

Build and run

See the README in the stratos-deploy repo for details on how to develop against the Console.

Docker commands and development tools

View Logs

docker logs stratos-ui

SSH into the running container

docker exec -it stratos-ui /bin/bash

or, from the stratos-deploy project

docker-compose run --rm ui bash

Running Karma tests in container

$ cd tools
$ npm test

Running Protractor tests in container

$ 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

Running ESLint in container

$ cd tools
$ ./node_modules/.bin/gulp lint

Running gate check script

This runs the unit tests and linting.

$ cd tools
$ npm run gate-check

Generate documentation (experimental)

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

About

Stratos: Web-based Console UI for Cloud Foundry

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 81.4%
  • HTML 11.2%
  • CSS 7.2%
  • Shell 0.2%