# Bom Tool front-end core project

The core project is an Angular library project that is installed on MyArrow and Arrow Front-end's projects. The library is published on Arrow's [Verdaccio](http://npm.arrow.com/#/) server.
This core project uses `yarn` instead of `npm`. This project was generated with [Angular CLI](https://github.com/angular/angular-cli) using [Nrwl Nx](https://nrwl.io/nx).

## Technologies

- Angular 9 (Upgrade to v10 is in progress)
- Node 10.14.1
- NgRx
- webSockets
- RxJs
- TypeScript
- Sass

## Install depedencies
Run `yarn install`

## Running the app locally
### Running bom-tool pointing to my-arrow side ( Env could be dev,qa,uat )

Run `yarn start:myarrow:qa`
#### When the project is running locally, first thing to do is the login with a MyArrow user [here is a list of user you can use](https://arrowecommerce.atlassian.net/wiki/spaces/MYAR/pages/884998985/My-Arrow+test+users)

### Running bom-tool pointing to arrow.com side 
Run `yarn start` 
by default this is going to point to QA env. If you want to point to any other env you should change `app.config.js`


## Build the library

Run `yarn build:lib` to build the library. The build artifacts will be stored in the `dist/` directory.

[Steps to publish the library](https://arrowecommerce.atlassian.net/wiki/spaces/MYAR/pages/879428771/FE+library+publish+bom-tool)
