@bloomreach/navigation-application
v2.8.1
Published
Bloomreach Navigation Application
Downloads
511
Maintainers
Keywords
Readme
Bloomreach Navigation Application
Introduction
This project contains the code for the navigation application, nav-app. The nav-app is the container application of micro-frontends in BRX. Through configuration it allows the loading of isolated apps inside iframes hosted on any domain.
These client apps can then use the @bloomreach/navigation-communication
library to communicate with the nav-app API to execute tasks.
Structure
This is an Angular workspace generated by the Angular CLI. The src
folder contains the nav-app application.
Installation
To install the dependencies, run:
pnpm i
Note: this will install all dependencies of the project, i.e. for every package in the monorepo.
Development
For a development setup:
pnpm start
Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Note: the development setup for the nav-app expects the ./apps/example-iframe-application
to be running on http://localhost:4300/
. Please follow the instructions in the ./apps/example-iframe-application
README to start the example app, or run pnpm start
from the root of the project.
Build
To produce a production build:
pnpm build
The build artifacts will be stored in the dist/
directory.
Running unit tests
To run the unit tests:
pnpm test
Linting
To run the linter:
pnpm lint
This will lint both the TypeScript and the SCSS files.
Documentation
To generate the documentation:
pnpm docs