Sample application showing a Progressive Web App (PWA) built with Lightning Web Components and the Workbox toolkit. The intention is to access real data using JSForce.
This sample application demonstrates how to buid an app that works with PWA and can be installed on your desktop or on the home screen of your local device. It also has access to real SF account data.
You can check the application Live.
-
Clone this repository
git clone https://github.com/krukmat/pwa-lwc-sforce cd lwc-pwa-demo
-
Install the dependencies
npm install
-
Configure the SF Credentials:
server.js:
username = '[email protected]', password = 'password+token';
-
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
-
If you need, it also possible to configure a heroku instance and run it.