Skip to content

Latest commit

 

History

History
 
 

suppliers

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

ERA Suppliers Portal

Features

  • submit invoices and referrals to be reimbursed by the province

Project Status

webapp

ci-suppliers-portal-api

ci-suppliers-portal-ui

Install

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)>

Usage

  1. set the above env vars in the API project's secrets.json file
  2. in suppliers/src/API/EMBC.Suppliers.API, run dotnet watch
  3. in suppliers/src/UI/embc-supplier, run
npm install --ignore-scripts
  1. to run the UI with a local API, run
npm run startlocal
  1. 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)

  1. open http://localhost:3200