https://github.com/hashobject/react-kudos
https://github.com/hashobject/react-kudos
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hashobject/react-kudos
- Owner: hashobject
- License: mit
- Created: 2015-03-11T22:46:09.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-03-12T00:21:19.000Z (about 11 years ago)
- Last Synced: 2025-07-04T14:12:34.285Z (9 months ago)
- Language: JavaScript
- Size: 348 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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)"
}
}
}
```