Skip to content

kriss-kross-io/messaging-tools

Repository files navigation

<messaging-tools>

Installation

bower install messaging-tools --save

Usage

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>

Setup

Prerequisites

Install npm (or install Node):

curl -L https://www.npmjs.com/install.sh | sh

Install bower:

npm install -g bower

Tools

Install polymer-cli:

npm install -g polymer-cli

Start the development server

This command serves the app at http://localhost:8080/components/messaging-tools/ and provides basic URL routing for the app:

polymer serve