User List Stencil Angular
This simple app shows a list of users and for this it is based on Stencil and Angular as framework.
Getting started
- 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
rld-components
package (https://www.npmjs.com/package/rld-components) to be able to use the<user-list />
component in the project:
npm i rld-components
- Install
static-server
module:
npm install -g static-server
Development server
Run ng serve
for a dev server. Navigate to http://localhost:4200/
.
Production server
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/
.
Running unit tests
Run ng test
to execute the unit tests via Karma.
Running end-to-end tests
Run ng e2e
to execute the end-to-end tests via Protractor.