Skip to content
An Ext JS-based, Progressive Web Application
Branch: master
Clone or download
Latest commit 2936ffd Feb 20, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
client
server Fix webpack dependency issue. Feb 3, 2019
.gitignore SEN67-131: [EXT-728] Ext JS Examples: Update PWA with npm - initial c… Dec 5, 2018
README.md

README.md

PWA

A demo of the Progressive Web App support using Ext JS 6.7 and open tooling.

Prerequisite

npm login --registry=https://npm.sencha.com --scope=@sencha

To run

Install dependencies:

cd client
npm install
cd ../server
npm install

Run the client in dev mode (watching for changes):

cd client
npm start

Run the server in dev mode (separate terminal):

cd server
npm start

You should now be able to point your browser to http://localhost:8082/.

Run Production Build

To run a production build, run these commands:

cd client
npm run production
cd ../server
ENV=production npm start

This will run a production build and start the server with a path to the production build. You should now be able to point your browser to http://localhost:8082/.

HTTPS

When the node server is started, it will check if there are any SSL certificates in the certs directory. If not, a non-secure only server will be started. If there is, it will start both a non-secure and a secure server. You can generate self-signed localhost certificates by running:

cd server
npm run ssl

This will prompt you a few questions, you can accept the defaults except for the Common Name prompt. For this prompt, enter localhost. Once completed, there will be a server.crt and server.key in the certs directory. Now when you run npm start, it will detect these and start both servers. You can then point your browser to the non-secure or secure server.

Note: Self signed certificates are not trusted and should not be used in production. The browser will warn you of this and you must opt into allowing the self signed certificate.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.