ng universal example

Angular Universal starter with server side rendering in Hapiness

9
2
TypeScript
Hapiness

NG-Universal & Anguar-CLI minimal starter

This demo is built following the NG-Universal & Anguar-CLI guide


Installation

$ yarn install

Development (Client-side only rendering)

run yarn run start which will start ng serve (project served at the standard: localhost:4200)


Production

run yarn run build:dynamic. All of the files that need to be served will be found within the /dist folder.


Testing Universal builds -Locally-

yarn run serve:dynamic

Compiles your application and spins up a Hapiness application to dynamically serve your Universal application on http://localhost:4000.