Code Monkey home page Code Monkey logo

commonfirebasejson's Introduction

Common Firebase JSON Structures

1 ipwpqqrhz0lkd_5setxqcq jpeg

There are tons of operations that can be made into your firebase database using JSON rules, you can potentially control what your user can change, do or access from your database.

Compilation of the common security rules for Firebase that are often used by people in their projects.

There are numerous rules people use in their projects, this is collection of those which have been used in my projects or in some other.

Currently there are JSON codes for following kind of behavior:

No security

Full security

Only Authenticated users can write

Users can only access their own data

Validates user is moderator from different database location

Validates string datatype and length range

Checks presense of child attributes

Validates timestamp is not a future value

Prevents Delete or Update

Prevents only Delete

Prevents only Update

Prevents Create and Delete

Allows update but no push (no new child created)

github-logo

Contribute to this repository, if you happen to have any new JSON structure

  1. Fork this repository.
  2. Add new JSON structure with small explanation in SecurityRules.json
  3. Don't forget to edit ReadMe.md with your new JSON structure
  4. Create a new pull request -> Submit the pull request
  5. Also do add your profile name and link in the contributors' list

Current Contributors

commonfirebasejson's People

Contributors

pradyuman7 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.