Sample application showing a Progressive Web App (PWA) built with Lightning Web Components and the Workbox toolkit.
This sample application demonstrates how to buid an app that works offline and can be installed on your desktop or on the home screen of your local device.
Check out this blog post for more information.
-
Clone this repository
git clone https://github.com/ccoenraets/lwc-pwa-demo cd lwc-pwa-demo
-
Install the dependencies
npm install
-
Build the application
npm run build:development
or (production build):
npm run build
-
Start the server
node server
-
Access the application at http://localhost:3001
Follow the steps in this blog post to work offline and install the application on your desktop.