This repo follows this offcail instruction on angular.io. It adds support of Ahead-Of-Time and Universal to improve the speed.
Forked from johnpapa's repo as I do not want to redo the tour-of-heroes tutorial.
git clone https://github.com/Mjf94/angular-tour-of-heroes.git toh
cd toh
npm i # or: yarn install
Runs the TypeScript compiler and launches the app
npm start
Runs the Angular AoT compiler, rollup, uglify for an optimized bundle, then launches the app
npm run build:aot
# when finish, run
npm run serve:aot
Runs in Angular Universal mode
npm run build:uni
# when finish, run
npm run serve:uni