The responders and managment facing portal
- 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"
}
}
}
- 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
- in
responders/src/UI/embc-responder
, run
npm install --ignore-scripts
- to run the UI with a local API, run
npm start
- 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
- 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
- before committing UI code changes, run the following to ensure the code will pass linting:
npm run format:write
npm run lint -- --fix
- before committing API code changes, run the unit tests to validate mapping and ensure all tests are green