The main purpose is to give you an example of a working CRUD, with rest service written in typescript and a generic widget in Angular 2 for list data as table with actions.
As seen here:
src/app/services/rest.service.ts
src/app/widgets/table-data/table-data.component.ts
for dev mode
start the app:
npm install
ng serve
for production mode
Angular 2
ng build --target=prod --prod
PM2 - https://github.com/Unitech/pm2
npm install pm2 -g
pm2 start server.js --name my-app
Run the Docker Image
docker build -t products_register_ng2 .
docker run -d -v ${PWD}:/usr/src/app -v /usr/src/app/node_modules -p 4300:4200 --name products_register products_register_ng2
Bootstraping of Angular2 with AdminLTE dashboard template