bower install messaging-tools --save
Remember to also include a firebase-app
element with the message-sender-id
set.
<link rel="import" href="bower_components/messaging-tools/messaging-subscribe-toggle.html">
<messaging-subscribe-toggle id="toggle"
topic="test-topic"
value="Subscribe to test-topic"></messaging-subscribe-toggle>
Install npm (or install Node):
curl -L https://www.npmjs.com/install.sh | sh
Install bower:
npm install -g bower
Install polymer-cli:
npm install -g polymer-cli
This command serves the app at http://localhost:8080/components/messaging-tools/
and provides basic URL
routing for the app:
polymer serve