It's a standard maven project able to compile and run a GWT Application and produce the service worker and manifest for PWAs.
Run in your terminal:
$ mvn clean package
Then you have the .war
ready for deploy in the target
folder.
- Import the project in your favourite Java IDE.
- Run
mvn gwt:devmode
in a terminal or from your IDE. - Navigate to
http://localhost:8888/
- Now you can modify your java code and reload.
Modify the file sw-precache-config.js
and run mvn clean package
.
You can read all the options available reading the sw-precache
documentation.
-
Add gwt-api-generator dependency to npm
$ npm install --save 'vaadin/gwt-api-generator#master'
-
Add your polymer element dependency to bower
$ bower install --save 'manolo/vaadin-pouchdb#master'
-
Uncomment the
gwt-api-generator
task inpom.xml
<plugin> <artifactId>maven-antrun-plugin</artifactId> ... <executions> ... <execution> <id>gwt-api-generator</id> ... <goals> <goal>run</goal> ...