This tutorial simply demos the integration of the existing application with Angular.
- 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
- Get docker image ready for use
$ ./scripts/testing/create_docker_img_for_testing.sh
- Run unit testing and generate the coverage report under ngCliLazyLoading/coverage/
$ ./scripts/testing/do_unit_testing.sh
- Run e2e testing
$ ./scripts/testing/do_e2e.sh
...
...
References: