Supplier facing portal to submit invoices and receipts to EMCR Finance review
- Configure the following as secrets of
EMBC.Registrants.API
:
{
"Dynamics": {
"DynamicsApiEndpoint": "[Dynamics server url]/api/data/v9.1/",
"ADFS": {
"OAuth2TokenEndpoint": "[ADFS token service url]",
"ClientId": "[ADFS client id]",
"ClientSecret": "[ADFS client secret]",
"ResourceName": "[ADFS resource name]",
"serviceAccountDomain": "[service account domain name]",
"serviceAccountName": "[service account name]",
"serviceAccountPassword": "[service account password]"
}
}
}
- run
suppliers/src/API/EMBC.Ssuppliers.API/EMBC.Suppliers.API.csproj
- in
suppliers/src/UI/embc-supplier
, run
npm install --ignore-scripts
- to run the UI with a local API, run
npm run local
- 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 dev
- 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