hostabee-comment-flow

Commenting solution out-of-the-box in a web component.

APACHE-2.0 License

Downloads
9
Stars
1
Committers
2

<hostabee-comment-flow>

Commenting solution out-of-the-box in a web component.

<hostabee-comment-flow></hostabee-comment-flow>
<script>
  const flow = document.querySelector('hostabee-comment-flow');
  // Populate the comment flow
  fetch('https://YOUR_API/comments')
    .then(res => res.json())
    .then(json => flow.comments = json.result);
</script>

Installation

Install <hostabee-comment-flow>:

bower install Hostabee/hostabee-comment-flow --save

Once installed, import it in your application:

<link rel="import" href="bower_components/hostabee-comment-flow/hostabee-comment-flow.html">

OPTIONAL

You can also install exif-js and JavaScript-Load-Image to automatically fix EXIF orientation on client-side. Be sure those 2 libraries are imported into your app before the hostabee-comment-flow element.

Running demos and tests in a browser

  1. Fork the hostabee-comment-flow repository and clone it locally.

  2. Make sure you have npm and Bower installed.

  3. When in the hostabee-comment-flow directory, run npm install and then bower install to install dependencies.

    • [OPTIONAL] If you want to run tests or demo of the element involving the hostabee-comment-flow-firebase-connector you have to provide the configuration of your application in the "test/firebase-config.js" and "demo/firebase-config.js" files.
  4. Run npm start, browser will automatically open the component API documentation.

  5. You can also open demo or in-browser tests by adding demo or test to the URL, for example:

Running Tests

  • When in the hostabee-comment-flow directory, run polymer test

Contributing

  1. Fork it!

  2. Create your feature branch: git checkout -b my-new-feature

  3. Commit your changes: git cz OR follow this commit guide to write the commit messages.

  4. Push to the branch: git push origin my-new-feature

  5. Submit a pull request.

License

Apache License 2.0

Package Rankings
Top 28.48% on Bower.io
Top 20.77% on Npmjs.org
Badges
Extracted from project README
Commitizen friendly Build Status Greenkeeper badge