https://github.com/ragingwind/electron-psk-boilerplate
Boilerplate to kickstart creating an app with [Electron](https://github.com/atom/electron) and [Polymer Starter Kit](https://github.com/PolymerElements/polymer-starter-kit)
https://github.com/ragingwind/electron-psk-boilerplate
Last synced: 24 days ago
JSON representation
Boilerplate to kickstart creating an app with [Electron](https://github.com/atom/electron) and [Polymer Starter Kit](https://github.com/PolymerElements/polymer-starter-kit)
- Host: GitHub
- URL: https://github.com/ragingwind/electron-psk-boilerplate
- Owner: ragingwind
- License: mit
- Created: 2015-11-12T20:59:04.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-12-19T15:31:53.000Z (over 10 years ago)
- Last Synced: 2025-04-01T17:13:07.107Z (over 1 year ago)
- Language: JavaScript
- Size: 0 Bytes
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# electron-psk-boilerplate
> Boilerplate to kickstart creating an app with [Electron](https://github.com/atom/electron) and [Polymer Starter Kit](https://github.com/PolymerElements/polymer-starter-kit)

## Getting started
In your directory, run:
```
$ curl -fsSL https://github.com/ragingwind/electron-psk-boilerplate/archive/master.tar.gz | tar -xz --strip-components 2
```
You can also `git clone` or [download](https://github.com/ragingwind/electron-psk-boilerplate/archive/master.zip) this repo and get contents of the `boilerplate` folder.
Yet ~~There's also a [Yeoman generator](https://github.com/ragingwind/generator-electron).~~
## Patch for running route properly
### For v1.1.1
You should add the following code to `src/app/elements/routing.html`. See [the doc](https://github.com/PolymerElements/polymer-starter-kit/blob/master/docs/chrome-dev-editor.md) for further information.
```js
page('*', function() {
page.redirect('/');
});
```
### For v1.2.1
You probably see the notification about route failed that could be annoyed but you could ignore it as update by code below in commenting toast code.
```js
// 404
page('*', function() {
// app.$.toast.text = 'Can\'t find: ' + window.location.href + '. Redirected you to Home Page';
// app.$.toast.show();
page.redirect(app.baseUrl);
});
```
## License
MIT © [ragingwind](http://ragingwind.me)