ermitaval / gwt-pwa-template

A PWA application template using GWT and Polymer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A Template for GWT PWAs

It's a standard maven project able to compile and run a GWT Application and produce the service worker and manifest for PWAs.

Build

Run in your terminal:

  $ mvn clean package

Then you have the .war ready for deploy in the target folder.

Develop

  1. Import the project in your favourite Java IDE.
  2. Run mvn gwt:devmode in a terminal or from your IDE.
  3. Navigate to http://localhost:8888/
  4. Now you can modify your java code and reload.

Configuring precache resources

Modify the file sw-precache-config.js and run mvn clean package.

You can read all the options available reading the sw-precache documentation.

Adding a new polymer dependency

  1. Add gwt-api-generator dependency to npm

     $ npm install --save 'vaadin/gwt-api-generator#master'
    
  2. Add your polymer element dependency to bower

     $ bower install --save 'manolo/vaadin-pouchdb#master'
    
  3. Uncomment the gwt-api-generator task in pom.xml

    <plugin>
     <artifactId>maven-antrun-plugin</artifactId>
     ...
     <executions>
       ...
       <execution>
         <id>gwt-api-generator</id>
         ...
         <goals>
           <goal>run</goal>
      ...
    

About

A PWA application template using GWT and Polymer

License:Apache License 2.0


Languages

Language:Java 65.7%Language:HTML 31.7%Language:JavaScript 2.6%