Skip to content

hashobject/react-kudos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-kudos

Installation

If you use webpack just install react-kudos module

  npm install react-kudos

and require it anywhere in your react app:

  var Kudos = require('react-kudos');

Firebase security rules

Add following firebase security rules if you want to prevent users from arbitrary changing vote results. We allow incremental vote submissions:

{
    "rules": {
        ".read": true,
        "$counter": {
          ".write": "!root.child($counter).exists() || ((newData.val() - data.val()) === 1)"
        }
    }
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published