Skip to content

Gogistics/prjNgMigrationTutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tutorial of Integration of Existing Application with Angular

This tutorial simply demos the integration of the existing application with Angular.

Run applications to see how it works

  • Spin up the docker container to run the existing application with Angular (SystemJS as module loader):
$ ./scripts/spin_up_koa_app.sh -m existing -a koa

then open your browser and go to http://192.168.99.100:8081/

Transpile files after updating Angular stuff

$ cd ngCliLazyLoading/
$ tsc -p src/
  • Spin up the docker container to run the application with Angular (AOT):
$ ./scripts/spin_up_koa_app.sh -m migration -a koa

then open your browser and go to http://192.168.99.100:8081/

Rebuild Angular stuff

$ cd ngCliLazyLoading/
$ ng build --prod --aot --deploy-url /ng/ # for AOT in production mode
$ ng build --deploy-url /ng/ # for development mode

Angular Testing

  1. Get docker image ready for use
$ ./scripts/testing/create_docker_img_for_testing.sh 
  1. Run unit testing and generate the coverage report under ngCliLazyLoading/coverage/
$ ./scripts/testing/do_unit_testing.sh 
  1. Run e2e testing
$ ./scripts/testing/do_e2e.sh

Analysis

ngrev

...

webpack-bundle-analyzer

...


References:

NgModules

Module vs Module

Docker Docs

ngrev

Analyzing bundle size with the Angular CLI and Webpack

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published