Integrate Workbox to Angular app - a service worker library integration for WPA (Progressive Web App) which caching assets, api response, ...etc in order to work in Offline mode.
injectManifest mode will generate a list of URLs to precache, and add that precache manifest to an existing service worker file. It will otherwise leave the file as-is.
workbox-routing for request matching.
workbox-strategies for caching strategies.
workbox-precaching for precaching.
workbox-expiration for managing caches.
workbox-window for registering a service worker and handling updates in the window context.
- Copy content of
.env.localto.env - Run
ng servefor a dev server. Navigate tohttp://localhost:4200/. The application will automatically reload if you change any of the source files. - Local Environment:
npm run start:localon port 8100 - Dev Environment:
npm run start:devon port 8100 - Prod Environment:
npm run start:prodon port 8100
- Local Environment:
npm run build:local - Dev Environment:
npm run build:dev - Prod Environment:
npm run build:prod
Run ng test to execute the unit tests via Karma.
``