• Stars
    star
    1
  • Language
    JavaScript
  • Created over 3 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Simple React app with deployed and DB in Firebase

Example https://simple-crud-4cf7c.web.app/

Initial Set Up

rules_version = '2'; service cloud.firestore { match /databases/{database}/documents {

match /posts/{postId} {
	allow read;
  allow create, update: if request.auth.uid != null && !resource.data.title  && !resource.data.content;
  allow delete: if request.auth.uid == resource.data.user.uid;
}

} match /users/{userId} { allow read, update, delete: if request.auth.uid == userId; allow create: if request.auth.uid != null; } }