Overview

1. Configure

Options


2. Generate

In the terminal (from your workspace folder) run the following CLI command

Installation will take a few minutes.


3. Add PWA support

ng add @angular/pwa


4. Serve

Change directory

In the terminal run the following CLI command

ng serve --port=4000 --open

Browser will open and you should see something like this:

image


Reference

Angular 11