- Make sure you have node, npm, and git installed on your machine
- If you haven't yet, set up an ssh key for Github. Docs
- OSX users only Should you encounter an error during exe of a
run.sh
script statingpython2: command not found
, then you'll need to create a symlink back to python2.7 like so:sudo ln -s /usr/bin/python2.7 /usr/local/bin/python2
This project uses Docker for development. You will need to download it in order to run the proxy container.
- You can curl a script to bypass the downloading. You will still have to run each application yourself as noted in the "Running and Developing" section below *
sh <(curl https://gist.githubusercontent.com/ryelo/efdf27b0b5a6d9c70f8e63b0abc1deaa/raw/f21dbc04443a61cf21d28a3d47467b4e072321bc/red-hat-insights-env.sh)
Container that provides ESI and routing tools
-
Clone the Proxy
git@github.com:RedHatInsights/insights-proxy.git
-
Install dependencies
npm install
-
Setup the initial /etc/hosts entries (do this once)
sudo bash scripts/patch-etc-hosts.sh
-
Pull/Update the proxy container
bash scripts/update.sh
Wraps your application and provides header, footer, navigation, styles, and a js library to interact with chrome directly.
-
Clone Chrome
git@github.com:RedHatInsights/insights-chrome.git
-
Install dependencies
npm install
-
Run the build
npm run build
Bootstrapped application with essential tools for rapid development
-
Clone the Starter App
git@github.com:RedHatInsights/insights-frontend-starter-app.git
-
Install dependencies
npm install
If you used the download script, pick back up here.
-
Run the container with default options
SPANDX_CONFIG=path/to/insights-frontend-starter-app/profiles/local-frontend.js sh path/to/insights-proxy/scripts/run.sh
- NOTE: if you get a
python2: command not found
error here, then you'll need to create a symlink back to python2.7 like so:sudo ln -s /usr/bin/python2.7 /usr/local/bin/python2
- NOTE: if you get a
-
Build from
insights-chrome/build
SPANDX_CONFIG=../../insights-frontend-starter-app/config/spandx.config.js sh ../../insights-proxy/scripts/run.sh
-
In another terminal tab/window inside of the
insights-frontend-starter-app
repo, runnpm run start
-
Navigate to
https://ci.foo.redhat.com:1337/insights/starter
If you are on Firefox, then first head to
https://sso.qa.redhat.com/
and accept the self-signed certificate.Credentials are your rhn-engineering username / redhat
If you are a new application in the platform, you will need to update some fields if you cloned the starter application
package.json
insights.appname
<- this should match your appName from cloud-services-config
.travis.yml
env.global
REPO
REPO_DIR
local-frontend.js
&local-frontend-and-api.js
SECTION
<- this should match your bundleAPP_ID
<- this should match your appName from cloud-services-config
App.js
insights.chrome.identifyApp('yourAppName')
<- this should match your appName from cloud-services-config