This repository was archived by the owner on Jul 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
UI Development: Getting started
Kin Ueng edited this page Nov 5, 2019
·
7 revisions
Instructions on how to run the NodeJS server (aka UI server) without deploying the UI container in Kubernetes (k8).
- When testing code change, you can avoid redeploying the UI docker container in k8.
- Gives you choice to use different k8 clusters with the same local UI server
- NodeJS
- Maven
-
kubectlCLI from Kubernetes -
ocCLI from OpenShift
git clone git@github.com:kappnav/apis.gitcd apismvn install
echo -Dkappnav.disable.trust.all.certs=true > ./target/liberty/wlp/usr/servers/defaultServer/jvm.options-
echo KAPPNAV_CONFIG_NAMESPACE=<namespace> > ./target/liberty/wlp/usr/servers/defaultServer/server.env- Replace
<namespace>with the namespace where you installed kAppNav on your k8 environment
- Replace
./target/liberty/wlp/bin/server start defaultServer --clean
git clone git@github.com:kappnav/ui.gitcd uinpm installnpm run-script build
-
KUBE_ENV=minikube KAPPNAV_CONFIG_NAMESPACE=<namespace> npm start- Replace
<namespace>with the namespace where you installed kAppNav on your k8 environment
- Replace
oc login -u username -p password https://<ipaddress>:<port>/