Randy424 / grc-ui-api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

grc-ui-api

Build Status

The UI API microservice, grc-ui-api, is the API server for the governance and risk dashboard UI for Open Cluster Management. (See grc-ui for the UI microservice that uses it)

Build

  • Install the modules

    npm ci
  • Build the project

       npm run build
    or npm run build:watch
    or npm run build:production

Running

SECURITY WARNING: The GRC UI API provides an SSL certificate in /sslcert that is open to the public. In order to run this in production, you'll need to replace these certificates. For our production builds, we replace these certificates using its Helm chart.

  1. The following environment variables need to be set.
    API_SERVER_URL
    SERVICEACCT_TOKEN - the token that you can get from the top right corner of RHACM page - configure client - the value of oc config set-credentials admin --token, it's a long string, starts with "ey...". Please note that this is a temporary token and it expires.
    
  2. Start the server
  • Development:
    npm start
    
  • Production:
    npm run start:production
    

About

License:Apache License 2.0


Languages

Language:JavaScript 63.7%Language:Makefile 17.3%Language:Shell 15.4%Language:Python 2.7%Language:Dockerfile 0.5%Language:Awk 0.4%