5. Download and Install Components
Overview
The Account Summary and Account Linking components are distributed as .tgz packages that you download and install into your development environment.
Instructions
1. Download the component packages
- Account Summary: https://www.byallaccounts.net/WebPortfolio/mstar-aggregation-consumer-accountsummary.tgz
- Account Linking: https://www.byallaccounts.net/WebPortfolio/mstar-aggregation-consumer-accountsetup.tgz
2. Install the packages
Run the following commands in your development environment:
npm install mstar-aggregation-consumer-accountsummary.tgz
npm install mstar-aggregation-consumer-accountsetup.tgz
3. Verify installed files
Confirm these files are under the node_modules directory:
mstar-aggregation-consumer-accountsummary folder
The folder contains:
mstar-aggregation-consumer-accountsummary.js, which is the JavaScript bundle for the Account Summary component.as_assetsfolder, which contains various configuration files and images for the component.package.jsonfile that describes the npm package.
mstar-aggregation-consumer-accountsetup folder
The folder contains:
mstar-aggregation-consumer-accountsetup.js, which is the JavaScript bundle for the Account Linking component.assetsfolder, which contains various configuration files and images for the component.package.jsonfile that describes the npm package.
The build system should ensure that the as_assets and assets folders and the main JavaScript files (mstar-aggregation-consumer-accountsummary.js and mstar-aggregation-consumer-accountsetup.js) are placed under the application's distribution (/dist) folder from where it is being served.
4. Import JavaScript files and initialize components in HTML
Import the JavaScript files into your HTML parent page and create instances of the mstar-aggregation-consumer-accountsummary and mstar-aggregation-consumer-accountsetup tag elements. The next step covers how to instantiate and configure them.
Success Criteria
- Both
.tgzpackages installed successfully via npm- Both component folders present under
node_moduleswith their JavaScript bundles, asset folders, andpackage.jsonfiles- Build system configured to copy component bundles and asset folders to your
/distdirectory- JavaScript bundles imported into your HTML parent page
Updated about 2 hours ago
