- submit invoices and referrals to be reimbursed by the province
API Env vars:
APP_NAME=local-suppliers-portal
ASPNETCORE_ENVIRONMENT=development
Kestrel__Limits__MaxRequestBodySize=104857600
Dynamics__ADFS__OAuth2TokenEndpoint=<ADFS token endpoint>
Dynamics__DynamicsApiEndpoint=<Dynamics url>/api/data/v9.0/
MAINTENANCE_START=<start time of maintenance window in DateTime formate, i.e. 2021-04-21T11:45:00.000Z (optional)>
NOTICE_MESSAGE=<pre maintenance window message (optional)>
MAINTENANCE_WARNING=<warning maintenance window message (optional)>
MAINTENANCE_PAGEDOWN=<maintenance window message (optional)>
API secret env vars:
Dynamics__ADFS__ClientId=<ADFS client id>
Dynamics__ADFS__ClientSecret=<ADFS client secret>
Dynamics__ADFS__ResourceName=<ADFS resource name>
Dynamics__ADFS__serviceAccountDomain=<Dynamics service account domain>
Dynamics__ADFS__serviceAccountName=<Dynamics service account name>
Dynamics__ADFS__serviceAccountPassword=<Dynamics service account password>
REDIS_CONNECTIONSTRING=<redis cache connection string (optional)>
SPLUNK_URL=<Splunk collector url (optional)>
SPLUNK_TOKEN=<Splunk token (optional)>
- set the above env vars in the API project's secrets.json file
- in
suppliers/src/API/EMBC.Suppliers.API
, rundotnet watch
- in
suppliers/src/UI/embc-supplier
, run
npm install --ignore-scripts
- to run the UI with a local API, run
npm run startlocal
- to run the UI and use the development environment API, run
npm run start
Note - in both cases, the UI auto generates client side proxy services using the API's OpenAPI specs (http://localhost:5000/api/openapi)