This simple app shows a list of users and for this it is based on the native specification of Web Components of the browser and as a framework uses Angular.
- Install
node.js
- Install Angular CLI:
npm install -g @angular/cli
- Install project dependencies. Go to the root project
$/user-list-webcomponent-angular
and run:
npm i
- Install
static-server
module:
npm -g install static-server
Run ng serve
for a dev server. Navigate to http://localhost:4200/
.
Run ng build --prod
to build the project:
ng build
Go to the dist
project $/dist/user-list-webcomponent-angular/
and run:
static-server --port 4200
Navigate to http://localhost:4200/
.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.