- Prerequisites
- Install dependencies
- Run Tests
- Development start
- Release cycle
- Using egeria-ui as a dependency
- Links
- License
Version | |
---|---|
NodeJS | 8.x |
NPM | 5.x |
Usually NPM version that works comes with the NODEJS dependency.
$ npm install
$ npm test
$ git clone https://github.com/odpi/egeria-ui
$ cd egeria-ui
$ npm install
$ npm run serve # will start a static server on http://localhost:8080 and will proxy any missing
# API Endpoints to the Mocked API
$ git clone https://github.com/odpi/egeria-api-mocks
$ cd egeria-api-mocks
$ npm install
$ npm start # will start a Mocked API on http://localhost:9000
$ git clone https://github.com/odpi/egeria-ui
$ cd egeria-ui
$ npm install
$ npm start # will start a static server on http://localhost:8081, no API endpoint will work if you access this directly.
$ git clone https://github.com/odpi/egeria
$ cd open-metadata-implementation/user-interfaces/ui-chassis/ui-chassis-spring/
$ mvn spring-boot:run -Dspring-boot.run.folders=/path/to/themes/ -Dspring-boot.run.arguments="--theme=default --zuul.routes.ui.url=http://localhost:8081 --omas.server.name= --omas.server.url= --open.lineage.server.url= --open.lineage.server.name= --server.ssl.trust-store=/path/to/egeria/truststore.p12"
$ npm install
$ npm test
$ npm run build # will be generating a static folder under ./build/dev
# folder which needs to be served using static server at a given address (e.g. https://ui.production) ⚠️ Warning.
Build the egeria project [2] and deploy it with all the required ENV variables, also pass --zuul.routes.ui.url=https://ui.production
as an ENV variable to the .jar
Egeria-UI use GitHub as its dependency provider, this means that all the releases are being pushed to the Github Egeria-UI repository here [1].
$ git clone https://github.com/odpi/egeria-ui # clone and checkout to master branch
$ vim release-notes.md # add release notes
$ git commit -m "Add release notes"
$ npm version patch # (minor or major) this will create a new commit with the bumped version
# and also a git version tag
$ # `npm publish .` won't be executed since we are using GitHub as a direct dependency
$ git push origin master
$ git push origin master --tags
$ # the released version will be available at the git version tag or in the
# release page here [1]
We use Azure Pipelines to verify any PRs build successfully before they can merge. Once merged the code is again built. See https://dev.azure.com/ODPi/Egeria/_build?definitionScope=%5CEgeria%20UI
For any other NPM package who wants to add egeria-ui@0.0.0
as a dependency it can use the direct URL dependency from GitHub like this:
{
"name": "your-own-npm-package",
"dependencies": {
"egeria-ui": "https://github.com/odpi/egeria-ui#v0.0.0"
}
}
You can also use a branch name or commit ID to point to a version, useful for work in progress or to use lastest merged code in master (e.g. #master, #d12c09a).
[1] - https://github.com/odpi/egeria-ui/releases
[2] - https://github.com/odpi/egeria
SPDX-License-Identifier: Apache-2.0 Copyright Contributors to the ODPi Egeria project.