https://github.com/manolo/gwt-pwa-template
A PWA application template using GWT and Polymer
https://github.com/manolo/gwt-pwa-template
Last synced: 6 months ago
JSON representation
A PWA application template using GWT and Polymer
- Host: GitHub
- URL: https://github.com/manolo/gwt-pwa-template
- Owner: manolo
- License: apache-2.0
- Created: 2016-11-11T19:48:02.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-10-31T13:25:59.000Z (over 8 years ago)
- Last Synced: 2024-12-30T18:38:10.530Z (over 1 year ago)
- Language: Java
- Size: 10.3 MB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
## 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](https://github.com/GoogleChrome/sw-precache).
### 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`
maven-antrun-plugin
...
...
gwt-api-generator
...
run
...