Skip to content

sencha-extjs-examples/PWA-Open-Tooling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PWA

A demo of the Progressive Web App support using Ext JS 7.0 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.

About

An Ext JS-based, Progressive Web Application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published