Angular 6.0.1 Project configured to SSR (Server Side Rendering), PWA and Perfect Lighthouse Score.
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
In the main
branch, run yarn build:ssr && yarn serve:ssr
for a production server. Navigate to http://localhost:4000
.
Switch to http2
branch and run yarn build:ssr && yarn serve:ssr
for a HTTP2 production server. Navigate to https://localhost
.
Remember to change the key and cert in your prodution environment.
Switch to firebase
branch, run firebase init
to config your firebase account, and finally run yarn build:all && yarn deploy
to build and deploy the app.
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.