edge-frontend
Getting Started
Install all dependencies
>$ npm install
Replace line 6 in edge-frontend/profiles/local-frontend.js
to:
const routes = {
'/config': { host: 'http://127.0.0.1:8889' },
'/beta/config': { host: 'http://127.0.0.1:8889' },
};
NOTE: You will need to run cloud-services-config until edge-frontend is on a stable branch
Read more here
Setting up cloud-services-config
Clone cloud-services-config to your local machine and navigate into the cloned directory.
Copy main.yml
to its own config directory.
>$ mkdir config
>$ cp main.yml config
Start http-server
>$ npx http-server -p 8889
You can choose to either run the application with webpack-proxy or with insights-proxy.
Running locally with webpack-proxy
Add prod.foo.redhat.com
, stage.foo.redhat.com
, qa.foo.redhat.com
and ci.foo.redhat.com
to your /etc/hosts
file (one time action). Follow this guide on how to edit your /etc/hosts file
Your /etc/hosts
file can look like:
127.0.0.1 prod.foo.redhat.com
127.0.0.1 stage.foo.redhat.com
127.0.0.1 qa.foo.redhat.com
127.0.0.1 ci.foo.redhat.com
127.0.0.1 qaprodauth.foo.redhat.com
Run the application in beta environment - beta only supported
>$ BETA=true npm run start:proxy
(Beta) Edge application will be available on https://ci.foo.redhat.com:1337/beta/edge/fleet-management
Running locally with insights-proxy
Follow the guide on insights-proxy on how to install proxy.
Once docker is installed, run
SPANDX_CONFIG=./profiles/local-frontend.js ../insights-proxy/scripts/run.sh
in one terminal.
Open another terminal and run
>$ npm start
Edge application will be available on https://ci.foo.redhat.com:1337/edge/fleet-management