Skip to content

Latest commit

 

History

History
 
 

suppliers

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

ERA Suppliers Portal

Supplier facing portal to submit invoices and receipts to EMCR Finance review

Project Status

webapp

suppliers-portal Build

Steps to run locally

  1. 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]"
        }
    }
}
  1. run suppliers/src/API/EMBC.Ssuppliers.API/EMBC.Suppliers.API.csproj
  2. in suppliers/src/UI/embc-supplier, run
npm install --ignore-scripts
  1. to run the UI with a local API, run
npm run local
  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 dev
  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