{"id":19070901,"url":"https://github.com/ohager/polymerdemo","last_synced_at":"2026-02-26T23:02:47.306Z","repository":{"id":33946085,"uuid":"37671984","full_name":"ohager/polymerdemo","owner":"ohager","description":"Polymer Demo (based on Polymer Starter Kit)","archived":false,"fork":false,"pushed_at":"2015-06-22T02:32:56.000Z","size":164,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-22T03:44:17.391Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"Sonerezh/sonerezh","license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ohager.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-18T16:45:17.000Z","updated_at":"2015-06-18T16:47:25.000Z","dependencies_parsed_at":"2022-07-13T18:20:39.381Z","dependency_job_id":null,"html_url":"https://github.com/ohager/polymerdemo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ohager/polymerdemo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohager%2Fpolymerdemo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohager%2Fpolymerdemo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohager%2Fpolymerdemo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohager%2Fpolymerdemo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ohager","download_url":"https://codeload.github.com/ohager/polymerdemo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohager%2Fpolymerdemo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29876347,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T22:37:10.609Z","status":"ssl_error","status_checked_at":"2026-02-26T22:37:09.019Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T01:21:13.986Z","updated_at":"2026-02-26T23:02:47.282Z","avatar_url":"https://github.com/ohager.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"![](https://cloud.githubusercontent.com/assets/110953/7877439/6a69d03e-0590-11e5-9fac-c614246606de.png)\n## Polymer Starter Kit\n\n\u003e A starting point for building web applications with Polymer 1.0\n\n### Included out of the box:\n\n* [Polymer](http://polymer-project.org), [Paper](https://elements.polymer-project.org/browse?package=paper-elements), [Iron](https://elements.polymer-project.org/browse?package=iron-elements) and [Neon](https://elements.polymer-project.org/browse?package=neon-elements) elements\n* [Material Design](http://www.google.com/design/spec/material-design/introduction.html) layout\n* Routing with [Page.js](https://visionmedia.github.io/page.js/)\n* Unit testing with [Web Component Tester](https://github.com/Polymer/web-component-tester)\n* Optional offline setup through [Platinum](https://elements.polymer-project.org/browse?package=platinum-elements) Service Worker elements\n* End-to-end Build Tooling (including [Vulcanize](https://github.com/Polymer/vulcanize))\n\n## Getting Started\n\nTo take advantage of Polymer Starter Kit you need to:\n\n1. Get a copy of the code.\n2. Install the dependencies if you don't already have them.\n3. Modify the application to your liking.\n4. Deploy your production code.\n\n### Get the code\n\n[Download](https://github.com/polymerelements/polymer-starter-kit/releases/latest) and extract Polymer Starter Kit to where you want to work.\n\nThe standard version of Polymer Starter Kit comes with tools that are very handy when developing a Polymer app. If you'd like to get started without installing any new tools, see Polymer Starter Kit Light in the [Releases](https://github.com/polymerelements/polymer-starter-kit/releases/latest) page.\n\n### Install dependencies\n\n#### Quick-start (for experienced users)\n\nWith Node.js installed, run the following one liner from the root of your Polymer Starter Kit download:\n\n```sh\nnpm install -g gulp bower \u0026\u0026 npm install \u0026\u0026 bower install\n```\n\n#### Prerequisites (for everyone)\n\nThe full starter kit requires the following major dependencies:\n\n- Node.js, used to run JavaScript tools from the command line.\n- npm, the node package manager, installed with Node.js and used to install Node.js packages.\n- gulp, a Node.js-based build tool.\n- bower, a Node.js-based package manager used to install front-end packages (like Polymer).\n\n**To install dependencies:**\n\n1)  Check your Node.js version.\n\n```sh\nnode --version\n```\n\nThe version should be at or above 0.12.x.\n\n2)  If you don't have Node.js installed, or you have a lower version, go to [nodejs.org](https://nodejs.org) and click on the big green Install button.\n\n3)  Install `gulp` and `bower` globally.\n\n```sh\nnpm install -g gulp bower\n```\n\nThis lets you run `gulp` and `bower` from the command line.\n\n4)  Install the starter kit's local `npm` and `bower` dependencies.\n\n```sh\ncd polymer-starter-kit \u0026\u0026 npm install \u0026\u0026 bower install\n```\n\nThis installs the element sets (Paper, Iron, Platinum) and tools the starter kit requires to build and serve apps.\n\n### Development workflow\n\n#### Serve / watch\n\n```sh\ngulp serve\n```\n\nThis outputs an IP address you can use to locally test and another that can be used on devices connected to your network.\n\n#### Run tests\n\n```sh\ngulp test:local\n```\n\nThis runs the unit tests defined in the `app/test` directory through [web-component-tester](https://github.com/Polymer/web-component-tester).\n\n#### Build \u0026 Vulcanize\n\n```sh\ngulp\n```\n\nBuild and optimize the current project, ready for deployment. This includes linting as well as vulcanization, image, script, stylesheet and HTML optimization and minification.\n\n## Application Theming\n\nPolymer 1.0 introduces a shim for CSS custom properties. We take advantage of this in `app/styles/app-theme.html` to provide theming for your application. You can also find our presets for Material Design breakpoints in this file.\n\n[Read more](https://www.polymer-project.org/1.0/docs/devguide/styling.html) about CSS custom properties.\n\n## Unit Testing\n\nWeb apps built with Polymer Starter Kit come configured with support for [Web Component Tester](https://github.com/Polymer/web-component-tester) - Polymer's preferred tool for authoring and running unit tests. This makes testing your element based applications a pleasant experience.\n\n[Read more](https://github.com/Polymer/web-component-tester#html-suites) about using Web Component tester.\n\n## Dependency Management\n\nPolymer uses [Bower](http://bower.io) for package management. This makes it easy to keep your elements up to date and versioned. For tooling, we use npm to manage Node.js-based dependencies.\n\n## Service Worker\n\nPolymer Starter Kit offers an optiional offline experience thanks to Service Worker and the [Platinum Service Worker elements](https://github.com/PolymerElements/platinum-sw). New to Service Worker? Read the following [introduction](http://www.html5rocks.com/en/tutorials/service-worker/introduction/) to understand how it works.\n\nOur optional offline setup should work well for relatively simple applications. For more complex apps, we recommend learning how Service Worker works so that you can make the most of the Platinum Service Worker element abstractions.\n\n### Enable Service Worker support?\n\nTo enable Service Worker support for Polymer Starter Kit project use these 3 steps:\n\n1. Uncomment Service Worker code in index.html\n  ```HTML\n  \u003c!-- Uncomment next block to enable Service Worker support (1/2) --\u003e\n  \u003c!--\n  \u003cpaper-toast id=\"caching-complete\"\n               duration=\"6000\"\n               text=\"Caching complete! This app will work offline.\"\u003e\n  \u003c/paper-toast\u003e\n\n  \u003cplatinum-sw-register auto-register\n                        clients-claim\n                        skip-waiting\n                        on-service-worker-installed=\"displayInstalledToast\"\u003e\n    \u003cplatinum-sw-cache default-cache-strategy=\"networkFirst\"\n                       precache-file=\"precache.json\"\u003e\n    \u003c/platinum-sw-cache\u003e\n  \u003c/platinum-sw-register\u003e\n  --\u003e\n  ```\n2. Uncomment Service Worker code in elements.html\n\n  ```HTML\n  \u003c!-- Uncomment next block to enable Service Worker Support (2/2) --\u003e\n  \u003c!--\n  \u003clink rel=\"import\" href=\"../bower_components/platinum-sw/platinum-sw-cache.html\"\u003e\n  \u003clink rel=\"import\" href=\"../bower_components/platinum-sw/platinum-sw-register.html\"\u003e\n  --\u003e\n  ```\n3. Add 'precache' to the list in the 'default' gulp task like below.\n[(gulpfile.js)](https://github.com/PolymerElements/polymer-starter-kit/blob/master/gulpfile.js)\n\n  ```JavaScript\n  // Build Production Files, the Default Task\n  gulp.task('default', ['clean'], function (cb) {\n    runSequence(\n      ['copy', 'styles'],\n      'elements',\n      ['jshint', 'images', 'fonts', 'html'],\n      'vulcanize', 'precache',\n      cb);\n  });\n  ```\n\n#### Filing bugs in the right place\n\nIf you experience an issue with Service Worker support in your application, check the origin of the issue and use the appropriate issue tracker:\n\n* [sw-toolbox](https://github.com/GoogleChrome/sw-toolbox/issues)\n* [platinum-sw](https://github.com/PolymerElements/platinum-sw/issues)\n* [platinum-push-notifications-manager](https://github.com/PolymerElements/push-notification-manager/)\n* For all other issues, feel free to file them [here](https://github.com/polymerelements/polymer-starter-kit/issues).\n\n#### I get an error message about \"Only secure origins are allowed\"\n\nService Workers are only available to \"secure origins\" (HTTPS sites, basically) in line with a policy to prefer secure origins for powerful new features. However http://localhost is also considered a secure origin, so if you can, developing on localhost is an easy way to avoid this error. For production, your site will need to support HTTPS.\n\n#### How do I debug Service Worker?\n\nIf you need to debug the event listener wire-up use `chrome://serviceworker-internals`.\n\n#### What are those buttons on chrome://serviceworker-internals?\n\nThis page shows your registered workers and provides some basic operations.\n\n* Unregister: Unregisters the worker.\n* Start: Starts the worker. This would happen automatically when you navigate to a page in the worker's scope.\n* Stop: Stops the worker.\n* Sync: Dispatches a 'sync' event to the worker. If you don't handle this event, nothing will happen.\n* Push: Dispatches a 'push' event to the worker. If you don't handle this event, nothing will happen.\n* Inspect: Opens the worker in the Inspector.\n\n#### Development flow\n\nIn order to guarantee that the latest version of your Service Worker script is being used, follow these instructions:\n\n* After you made changes to your service worker script, close all but one of the tabs pointing to your web application\n* Hit shift-reload to bypass the service worker as to ensure that the remaining tab isn't under the control of a service worker\n* Hit reload to let the newer version of the Service Worker control the page.\n\nIf you find anything to still be stale, you can also try navigating to `chrome:serviceworker-internals` (in Chrome), finding the relevant Service Worker entry for your application and clicking 'Unregister' before refreshing your app. This will (of course) only clear it from the local development machine. If you have already deployed to production then further work will be necessary to remove it from your user's machines.\n\n#### Disable Service Worker support after you enabled it\n\nIf for any reason you need to disable Service Worker support after previously enabling it, you can remove it from your Polymer Starter Kit project using these 4 steps:\n\n1. Remove references to the platinum-sw elements from your application [index](https://github.com/PolymerElements/polymer-starter-kit/blob/master/app/index.html).\n2. Remove the two Platinum Service Worker elements (platinum-sw/..) in [app/elements/elements.html](https://github.com/PolymerElements/polymer-starter-kit/blob/master/app/elements/elements.html)\n3. Remove 'precache' from the list in the 'default' gulp task ([gulpfile.js](https://github.com/PolymerElements/polymer-starter-kit/blob/master/gulpfile.js))\n4. Navigate to `chrome://serviceworker-internals` and unregister any Service Workers registered by Polymer Starter Kit for your app just in case there's a copy of it cached.\n\n## Yeoman support\n\n[generator-polymer](https://github.com/yeoman/generator-polymer/releases) now includes support for Polymer Starter Kit out of the box.\n\n## Frequently Asked Questions\n\n\u003e Where do I customise my application theme?\n\nTheming can be achieved using [CSS Custom properties](https://www.polymer-project.org/1.0/docs/devguide/styling.html#xscope-styling-details) via [app/styles/app-theme.html](https://github.com/PolymerElements/polymer-starter-kit/blob/master/app/styles/app-theme.html).\nYou can also use `app/styles/main.css` for pure CSS stylesheets (e.g for global styles), however note that Custom properties will not work there under the shim.\n\nA [Polycast](https://www.youtube.com/watch?v=omASiF85JzI) is also available that walks through theming using Polymer 1.0.\n\n\u003e Where do I configure routes in my application?\n\nThis can be done via [`app/elements/routing.html`](https://github.com/PolymerElements/polymer-starter-kit/blob/master/app/elements/routing.html). We use Page.js for routing and new routes\ncan be defined in this import. We then toggle which `\u003ciron-pages\u003e` page to display based on the [selected](https://github.com/PolymerElements/polymer-starter-kit/blob/master/app/index.html#L105) route.\n\n\u003e Why are we using Page.js rather than a declarative router like `\u003cmore-routing\u003e`?\n\n`\u003cmore-routing\u003e` (in our opinion) is good, but lacks imperative hooks for getting full control\nover the routing in your application. This is one place where a pure JS router shines. We may\nat some point switch back to a declarative router when our hook requirements are tackled. That\nsaid, it should be trivial to switch to `\u003cmore-routing\u003e` or another declarative router in your\nown local setup.\n\n\u003e Where can I find the application layouts from your Google I/O 2015 talk?\n\nApp layouts live in a separate repository called [app-layout-templates](https://github.com/PolymerElements/app-layout-templates).\nYou can select a template and copy over the relevant parts you would like to reuse to Polymer Starter Kit.\n\nYou will probably need to change paths to where your Iron and Paper dependencies can be found to get everything working.\nThis can be done by adding them to the [`elements.html`](https://github.com/PolymerElements/polymer-starter-kit/blob/master/app/elements/elements.html) import.\n\n\u003e Something has failed during installation. How do I fix this?\n\nOur most commonly reported issue is around system permissions for installing Node.js dependencies.\nWe recommend following the [fixing npm permissions](https://github.com/sindresorhus/guides/blob/master/npm-global-without-sudo.md)\nguide to address any messages around administrator permissions being required. If you use `sudo`\nto work around these issues, this guide may also be useful for avoiding that.\n\nIf you run into an exception that mentions five optional dependencies failing (or an `EEXIST` error), you\nmay have run into an npm [bug](https://github.com/npm/npm/issues/6309). We recommend updating to npm 2.11.0+\nto work around this. You can do this by opening a Command Prompt/terminal and running `npm install npm@2.11.0 -g`. If you are on Windows,\nNode.js (and npm) may have been installed into `C:\\Program Files\\`. Updating npm by running `npm install npm@2.11.0 -g` will install npm\ninto `%AppData%\\npm`, but your system will still use the npm version. You can avoid this by deleting your older npm from `C:\\Program Files\\nodejs`\nas described [here](https://github.com/npm/npm/issues/6309#issuecomment-67549380).\n\nIf the issue is to do with a failure somewhere else, you might find that due to a network issue\na dependency failed to correctly install. We recommend running `npm cache clean` and deleting the `node_modules` directory followed by\n`npm install` to see if this corrects the problem. If not, please check the [issue tracker](https://github.com/PolymerElements/polymer-starter-kit/issues) in case\nthere is a workaround or fix already posted.\n\n\n\u003e I'm having trouble getting Vulcanize to fully build my project on Windows. Help?\n\nSome Windows users have run into trouble with the `elements.vulcanized.html` file in their `dist` folder\nnot being correctly vulcanized. This can happen if your project is in a folder with a name containing a\nspace. You can work around this issue by ensuring your path doesn't contain one.\n\nThere is also an [in-flight](https://github.com/PolymerElements/polymer-starter-kit/issues/62#issuecomment-108974016) issue\nwhere some are finding they need to disable the `inlineCss` option in our configuration for Vulcanize\nto correctly build. We are still investigating this, however for the time-being use the workaround if\nyou find your builds getting stuck here.\n\n\n\u003e How do I add new JavaScript files to Starter Kit so they're picked up by the build process?\n\nAt the bottom of `app/index.html`, you will find a build block that can be used to include additional\nscripts for your app. Build blocks are just normal script tags that are wrapped in a HTML\ncomment that indicates where to concatenate and minify their final contents to.\n\nBelow, we've added in `script2.js` and `script3.js` to this block. The line\n`\u003c!-- build:js scripts/app.js --\u003e` specifies that these scripts will be squashed into `scripts/app.js`\nduring a build.\n\n```html\n\u003c!-- build:js scripts/app.js --\u003e\n\u003cscript src=\"scripts/app.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"scripts/script2.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"scripts/script3.js\"\u003e\u003c/script\u003e\n\u003c!-- endbuild--\u003e\n```\n\n\u003e I'm finding the installation/tooling here overwhelming. What should I do?\n\nDon't worry! We've got your covered. Polymer Starter Kit tries to offer everything you need to build and optimize your apps for production, which is why we include the tooling we do. We realise however that our tooling setup may not be for everyone.\n\nIf you find that you just want the simplest setup possible, we recommend using Polymer Starter Kit light, which is available from the [Releases](https://github.com/PolymerElements/polymer-starter-kit/releases) page. This takes next to no time to setup.\n\n## Contributing\n\nPolymer Starter Kit is a new project and is an ongoing effort by the Web Component community. We welcome your bug reports, PRs for improvements, docs and anything you think would improve the experience for other Polymer developers.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fohager%2Fpolymerdemo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fohager%2Fpolymerdemo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fohager%2Fpolymerdemo/lists"}