Skip to content

RedHatInsights/sed-frontend

Repository files navigation

Build Status codecov

Red Hat Connector Dashboard

First time setup

Quick start

  1. Make sure you have Node.js and npm installed
  2. Run script to patch your /etc/hosts
  3. Make sure you are using Red Hat proxy

Comprehensive documentation

There is a comprehensive quick start guide in the Storybook Documentation to setting up an Insights environment.

Running locally

  1. Install dependencies with npm install
  2. Run development server with npm run start:proxy:beta
  3. Local version of the app will be available at https://stage.foo.redhat.com:1337/preview/insights/connector/

Testing

  • npm run verify will run linters and tests
  • Travis is used to test the build for this code.

Deploying

  • The Platform team is using Travis to deploy the application

How it works

  • any push to the sed-frontend master branch will deploy to a sed-frontend-build ci-beta and qa-beta branch
  • any push to the sed-frontend master-stable branch will deploy to a sed-frontend-build ci-stable and qa-stable branch
  • any push to the sed-frontend prod-beta branch will deploy to a sed-frontend-build prod-beta branch
  • any push to the sed-frontend prod-stable branch will deploy to a sed-frontend-build prod-stable branch
  • Pull requests (based on master) will not be pushed to sed-frontend-build master branch
    • If the PR is accepted and merged, master will be rebuilt and will deploy to sed-frontend-build ci-beta branch

Patternfly

Insights Components

Platform experience will deliver components and static assets through npm. ESI tags are used to import the chroming which takes care of the header, sidebar, and footer.

Technologies

Webpack

There is shared common config with predefined values and lifecycles to build and run your application.

We use federated modules to seamlessly load multiple application.