/real-time-contact

A web component for real time contact based on Firebase and Polymer.

Primary LanguageHTMLMIT LicenseMIT

<real-time-contact>

A simple contact form built with Polymer and Firebase..

Why?

We needed a form to wire up to our slackbot.

Demo

Check it live!

Install

Install the component using Bower:

$ bower install StickmanVentures/real-time-contact --save

Or download as ZIP.

Usage

  1. Import polyfill:

    <script src="bower_components/webcomponentsjs/webcomponents-lite.min.js"></script>
  2. Import custom element:

    <link rel="import" href="bower_components/stickmanventures/real-time-contact.html">
  3. Start using it!

    <real-time-contact firebase="https://YOUR_ENDPOINT.firebaseio.com/requests"></real-time-contact>

Options

Attribute Options Default Description
firebase string `` Firebase instance endpoint.

Development

In order to run it locally you'll need to fetch some dependencies and a basic server setup.

  1. Install bower & polyserve:

    $ npm install -g bower polyserve
  2. Install local dependencies:

    $ bower install
  3. Start development server and open http://localhost:8080/components/real-time-contact/.

    $ polyserve

History

For detailed changelog, check Releases.

License

MIT License