- Install Nodejs (v10.16.0 or later)
- Install npm (6.9.0 or later)
Global npm packages needed:
npm install -g webpack-dev-server
npm install -g webpack-cli
NOTE: FOR RUNNING AND DEVELOPING YOU NEED TO ACTIVATE YOUR Red Hat VPN.
You'll need to clone these repositories:
git clone https://github.com/project-xavier/xavier-ui.git
cd xavier-ui
npm ci
git clone https://github.com/RedHatInsights/insights-chrome
cd insights-chrome
npm ci
git clone https://github.com/RedHatInsights/insights-proxy.git
cd insights-proxy
npm install
cd insights-proxy
sudo bash scripts/patch-etc-hosts.sh
cd xavier-ui
npm ci # Always execute this when package.json changed
npm run start
cd insights-chrome
npm run build
npm run start
Move to insight-chrome/build folder and then execute:
cd insights-chrome/build
SPANDX_CONFIG=../../xavier-ui/profiles/local-frontend-and-api.js LOCAL_CHROME=true sh ../../insights-proxy/scripts/run.sh
open your browser - https://ci.foo.redhat.com:1337/beta/migrations/migration-analytics