Skip to content

Latest commit

 

History

History
93 lines (70 loc) · 2.48 KB

README.md

File metadata and controls

93 lines (70 loc) · 2.48 KB

Report-Fire

form-fire

A simple way to report content via Firebase


<report-fire>

A simple way to report content via Firebase. It will push an object with optional message and by properties to the desired path. If another object with the same by property exists, then it will return a positive value for reported.

<firebase-app
  name="demo"
  api-key="AIzaSyAhoCXxkY-ffNwA_7L7HIwBVpASYj1btNE"
  auth-domain="convoo-login-demo.firebaseapp.com"
  database-url="https://convoo-login-demo.firebaseio.com">
</firebase-app>
<report-fire path="/reports/profiles/12391701" message="Profile Report" by="12387103713" app-name="demo" reported>
    <template is="dom-if" if="[[reported]]">
    Thank you for reporting!
    </template>

    <template is="dom-if" if="[[!reported]]">
    Report!
    </template>
</report-fire>

Install the Polymer-CLI

First, make sure you have the Polymer CLI installed. Then run polymer serve to serve your application locally.

Viewing Your Application

$ polymer serve

Building Your Application

$ polymer build

This will create a build/ folder with bundled/ and unbundled/ sub-folders containing a bundled (Vulcanized) and unbundled builds, both run through HTML, CSS, and JS optimizers.

You can serve the built versions by giving polymer serve a folder to serve from:

$ polymer serve build/bundled

Running Tests

$ polymer test

Your application is already set up to be tested via web-component-tester. Run polymer test to run your application's test suite locally.