An open API service indexing awesome lists of open source software.

https://github.com/theprofs/polymer-elem-switch

Experiments on switching Polymer 1.x elements on runtime
https://github.com/theprofs/polymer-elem-switch

Last synced: 3 months ago
JSON representation

Experiments on switching Polymer 1.x elements on runtime

Awesome Lists containing this project

README

          

# 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

```bash
npm install
```

## Develop

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

## Run

```bash
npm run start-dev
```

and visit: https://localhost:5055

## Test

Ensure you have the latest [Firefox][firefox] installed, then:

```bash
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][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][nicholaswmin]

[firefox]: https://firefox.com
[heroku]: https://heroku.com
[nicholaswmin]: https://github.com/nicholaswmin