Skip to content

Latest commit

 

History

History

responders

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

ERA Responders Portal

The responders and managment facing portal

Project Status

webapp

responders-portal Build

Steps to run locally

  1. Configure the following as secrets in EMBC.Responders.API.csproj:
{
  "jwt": {
    "metadataAddress": "https://dev.loginproxy.gov.bc.ca/auth/realms/standard/.well-known/openid-configuration",
    "audience": "[CSS client id]"
  },
  "oidc": {
    "clientId": "[CSS client id]",
    "issuer": "https://dev.loginproxy.gov.bc.ca/auth/realms/standard",
    "bceidLogoutUrl": "https://logontest7.gov.bc.ca/clp-cgi/logoff.cgi",
  },
  "messaging": {
    "authorizationEnabled": "true",
    "oauth": {
      "metadataAddress": "[oauth server url in OpenShift or local]/.well-known/openid-configuration",
      "clientId": "[API client id as configured in oauth server configuration]",
      "clientSecret": "[API client secret as configured in oauth server configuration]",
      "scope": "ess-backend"
    }
  }
}
  1. to run the API locally, run the following projects:

ess/src/API/EMBC.ESS.Host/EMBC.ESS.Host.csproj

responders/src/API/EMBC.Responsers.API/EMBC.Responders.API.csproj

  1. in responders/src/UI/embc-responder, run
npm install --ignore-scripts
  1. to run the UI with a local API, run
npm start
  1. to run the UI and use the a remote dev environment API, without the needs to run the API locally (step 2), run
npm run start-prj
npm run start-sup
  1. to auto generate the API client side code, run the one of the following (depends on which environment has the API changes):
npm run gen-api-local
npm run gen-api-prj
npm run gen-api-sup
  1. before committing UI code changes, run the following to ensure the code will pass linting:
npm run format:write
npm run lint -- --fix
  1. before committing API code changes, run the unit tests to validate mapping and ensure all tests are green