Each of the module UI projects in this directory has a
Makefile to make working with it easier.
To install node dependencies (any anytime things get out of sync wipe
node_modules and do this again):
To run a local development server:
The server will be located at http://0.0.0.0:8080 and it will be proxy all API calls to Brooklyn Server which you shuld run before on default for Brooklyn 8081 port. After that any chages detected in project file system will automaticly refresh application via Webpack HMR (Hot Module Replacement) without hard reload page.
To build the production bundle, just run:
The bundle will be placed in
To run the production bundle with an API proxy server:
To change default settings via environment variables, for example port number, create
.env file in project root folder:
API_HOSTNAME="0.0.0.0" API_PORT=8081 API_PATH="/v1/" PORT=8080 HOSTNAME="0.0.0.0"
Or just run any
npm command with env prefix variable to change it in place, for example:
API_PORT=8080 PORT=80 make server
Branding/skinning settings can also be applied, as per those documents. For example:
The project comes with 2 kinds of tests:
To unit test, just run:
For the end-to-end tests, you need first to have protractor installed and setup. You also need to have the UI module running locally, as well as the Brooklyn server. Then, just run:
npm run e2e