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
- Host: GitHub
- URL: https://github.com/theprofs/polymer-elem-switch
- Owner: TheProfs
- License: mit
- Created: 2022-11-16T12:10:45.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-17T14:04:45.000Z (over 3 years ago)
- Last Synced: 2025-12-26T18:48:28.400Z (6 months ago)
- Language: HTML
- Size: 221 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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