The Marketplace UI is web-based frontend for Marketplace Server, and requires an instance of the server to be launched.
Developer Quick Start
This is an Angular project using
ng @angular/cli as the build system, SCSS for CSS and Bootstrap for layout.
npm is the package manager. Assuming you already have node installed via
nvm or similar, run
ng serve for a dev server. Navigate to
http://localhost:4200/. The app will automatically reload if you change any of the source files. The following must be set:
export MARKETPLACE_SERVER_URL=https://marketplace-server.logicahealth.org export MARKETPLACE_SERVER_WEBSOCKET_URL=wss://marketplace-server.logicahealth.org
ng generate component component-name to generate a new component. You can also use
ng generate directive|pipe|service|class|guard|interface|enum|module.
ng build to build the project. The build artifacts will be stored in the
dist/ directory. Use the
--prod flag for a production build.
Running unit tests
ng test to execute the unit tests via Karma.
Running end-to-end tests
ng e2e to execute the end-to-end tests via Protractor.
Building for Production
ng build # to build your local copy with any local changes
docker build -t p3000/marketplace-ui:latest . # though you probably want your own repo and tag strings :)
Extremely easy in your existing Dockerized hosting environment by pointing it at your Marketplace Server installation. Just:
docker run -d -p 9000:80 --restart unless-stopped -e "MARKETPLACE_SERVER_URL=http://localhost:3000" p3000/marketplace-ui:latest # or any official tag
And you're done. No environment variables or further configuration are needed. Jedi's may use your existing Kubernetes, Open Shift etc installations as you see fit. :)