In this section, we'll see how to manually implement the required technical steps we're still missing to make our HealthCheck app fully compliant with the PWA requirements.
Let's briefly recap them:
- Add the @angular/service-worker npm package (package.json)
- Enable the service worker support in the Angular CLI configuration file (angular.json)
- Import and register ServiceWorkerModule in the AppModule class (app.module.ts)
- Update the main app's HTML template file (index.html)
- Add a suitable icon file (icon.ico)
- Add the manifest file (manifest.webmanifest)
- Add the service worker configuration file (ngsw-config.json)
For each step, we've mentioned the relevant file that we'll have to update between parentheses.