KO
|
EN
gitlite — search
Search
#nextjs
#python
#html
#css
#reactjs
#mern-stack
#nodejs
#vanilla-javascript
#golang
#svelte
#responsive
#javascript
Firebase-CRUD-Example
★ 71
Open GitHub ↗
Firebase CRUD example
Download README (.md)
Explore Similar Repositories
recipe-parser
:
Natural language parser for recipes and lists of ingredients
Snapchat-Filter
:
3 facial filters on a webcam feed using OpenCV & ML - face swap, glasses and moustache
go-workerpool
:
Worker pool implementation
python-study
:
我的Python学习代码
IntroduccionPatronesDiseno
:
No description available.
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
Firebase-CRUD-Example
?
Download (.md)
## Live Demo https://earthchie.github.io/Firebase-CRUD-Example/ http://earthchie.com/firebase/crud/ (Thai language interface) #### Rules ```json { "rules": { ".read": true, ".write": "auth != null", "Entry": { ".read": true, ".write": "auth != null", "$child": { ".read": true, ".write": "auth != null", "views": { ".read": true, ".write": true, ".validate": "data.val() == null || newData.val() == data.val() || newData.val() == data.val()+1" } } } } } ``` This rule allows guest to increase number of views, while protect them from editing something else. Let's break down this line ```json ".validate": "data.val() == null || newData.val() == data.val() || newData.val() == data.val()+1" ``` ``data.val() == null`` is allow to create. ``newData.val() == data.val()`` is allow to update with the exact same value. ``newData.val() == data.val()+1`` is allow to increase value by 1. ## License WTFPL 2.0 http://www.wtfpl.net/