The client helpers core is the base component of the WebMAP's front-end architecture. It is responsible for managing the communication between the back-end server and the front-end. Also processes the information received and keep all the information about the control's models that are rendered in the client side.
Once you have the repository downloaded and all the Software dependencies of section 2 are installed, go ahead and install all the dependencies using yarn:
Inside the root directory of this README execute yarn install
or yarn
in a command line.
For more information about yarn visit their website: Yarn
Before you try to install the final dependencies of the project you'll need to set the npm registry and have the next ones:
npm set registry http://ais-build-w7:81/npm/Frontend/
or npm set registry https://www.myget.org/F/mobilizenet/npm/
npm install -g yarn
with Node.js installed.For a complete reference to the project documentation you can visit the next link:
To build the project, go to the root directory of the core project inside this repository, and then execute npm run build
.
In case of testing, simply execute the npm script npm run test
. This command already generates the coverage report files used
by the TFS build process:
test-results.trx
coverage/browser-name/coverage.xml
To run e2e tests, follow the next steps:
Using npm link:
Execute the next commands in a cmd:
cd path/to/ClientCore/core/package
this means the location of the package.json inside the core project.npm link
cd ./SamplesPATH
this Samples can be the full path to the Samples or E2E directories inside WFNetKendo repositorynpm link @mobilize/webmap-core
And then follow the e2e instructions inside Samples or E2E README
Using the npm pack:
Build the project
Go to the root directory of the core project
run npm version x.x.x
(x can be any number), this is just to put a version for the package
run npm pack
copy the path of the package (.tgz)
open ./package.json file that is located in the AngularClient/WebMap.Client.Angular folder and paste the path exactly in "@mobilize/webmap-core" value, just like this:
"@mobilize/webmap-core": "path\to\the\package.tgz"
follow the e2e instructions inside AngularClient README
root
└── dist: compiled typescript, javascript and resources are placed here.
└── src: typescript source.
| └── Application
| └── Contract
| └── Core
| └── Server
| └── System
| └── UI
| └── v5
└── test
| └── features
| └── userstories
└── typings
The modules also represent the main folder structure of the source directory.