/polymer-elem-switch

Experiments on switching Polymer 1.x elements on runtime

Primary LanguageHTMLMIT LicenseMIT

polymer-elem-switch

Experiments on switching Polymer 1.x elements on runtime

Trust the local SSL certificate

You need to locally trust the SSL certificates in this project:

  • You can find the certificates in /ssl folder.
  • Open up Keychain Access. You can get to it from Application/Utilities/Keychain Access.app.
  • Drag your certificate into Keychain Access.
  • Go into the Certificates section and locate the certificate you just added
  • Double click on it, enter the trust section and under "When using this certificate" select "Always Trust".

Install

npm install

Develop

The element is polymer-elem-switch.html in the root directory of this project.

Run

npm run start-dev

and visit: https://localhost:5055

Test

Ensure you have the latest Firefox installed, then:

npm test

Unit tests are currently only run on Firefox due to a Chrome issue.

You can also run tests in any browser by visiting https://localhost:5055/test while $ npm run start-dev is running. The test results are in the browser console.

Deploy

This element is set up to be deployed on Heroku.

Just create a Heroku app using the NodeJS buildpack, connect Github deployment and make sure that Heroku runs the $ npm start script.

License

MIT

Authors

@nicholaswmin