Giter Site home page Giter Site logo

pwa's Introduction

PWA

A demo of the Progressive Web App support in Ext JS 6.5 and Sencha Cmd 6.5.

To run

You will need to download Sencha Ext JS. We recommend extracting Ext JS into a "sencha-sdks" folder in your home directory.

Once Ext JS is extracted, run these commands:

cd client
sencha app install ~/sencha-sdks
sencha app build --dev
cd ../server
npm install
npm start

On Windows the "~" part of the path will be replaced by something like "C:\Users\Me".

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
sencha app build
cd ../server
NODE_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.

pwa's People

Contributors

dbuhrman avatar dongryphon avatar mitchellsimoens avatar shivar1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pwa's Issues

`sencha app install` = trouble

Sencha Cmd v6.5.3.6
[INF] Using existing workspace at R:\PWA-master\PWA-master\client
[WRN] the following remote package repository directories did not initialize properly :
[WRN]    - C:\Java\scmd\Sencha\Cmd\repo\.sencha\repo\remotes\sencha
[WRN]    - C:\Java\scmd\Sencha\Cmd\repo\.sencha\repo\remotes\sencha-beta
[WRN] Consider removing the local package repository directory at : C:\Java\scmd\Sencha\Cmd\repo
[WRN] It will be recreated dynamically when next needed
[ERR] Cannot satisfy requirements for "ext"!
[ERR]    The following versions cannot be satisfied:
[ERR]       root: ext (No matches!)
[ERR] Cannot resolve package requirements

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.