Remote Network And System Administration Job In IT And Networking

Write firebase rules

Find more Network And System Administration remote jobs posted recently Worldwide

I have two Firestore collections. The first contains about 1,000 documents, each with 34 fields. 28 of the fields are text string, 2 are boolean, 2 are numbers, 2 are map types with sub fields. One of the map types corresponds to the second collection, Lists. A document can belong to many Lists or no lists (one to many relationship). The lists are stored in a separate collection, each with an ID that can be referenced in the map in the other collection.

I will share an images of how the database is structured.

These items power a mobile app built in Flutter/DART. Users can log in and to various things, like add items to their profiles.

We have built an admin panel to modify these items in Angular. I need someone to write security rules based on Firebase user types, so that my team can access the admin panel, and users can still access their data, which is embedded in the items via a map type.

Something like this is needed:
service cloud.firestore {
match /databases/{ database} /documents {
// Messages:
// - Anyone can read.
// - Authenticated users can add and edit messages.
// - Validation: Check name is same as auth token and text length below 300 char or that imageUrl is a URL.
// - Deletes are not allowed.

match /{ document=**} {
allow read, write;
}

match /messages/{ messageId} {
allow read;
allow create, update: if request.auth != null
&& request.resource.data.name == request.auth.token.name
&& (request.resource.data.text is string
&& request.resource.data.text.size() <= 300
|| request.resource.data.imageUrl is string
&& request.resource.data.imageUrl.matches(https?://.*));
allow delete: if false;
}
// FCM Tokens:
// - Anyone can write their token.
// - Reading list of tokens is not allowed.
match /fcmTokens/{ token} {
allow read: if false;
allow write;
}
}
}
About the recuiter
Member since Sep 16, 2017
Divya Pradhan
from Delhi, India

Skills & Expertise Required

Firebase 

Open for hiringApply before - Aug 22, 2024

Work from Anywhere

40 hrs / week

Fixed Type

Remote Job

$19.16

Cost

Offer to work on this project closes in 105 days!
Are you interested in this Opportunity?

Looking for help? Checkout our video tutorial
How to search and apply for jobs

How to apply? Do you have more questions about the Job?
See frequently asked questions

Similar Projects

Javascript developer need for creation and amendment of functions for Firebase and Stripe.

I have several existing functions that I need to amend and will also need to create new ones. Im looking for someone who can complete the work I have now and then continue to work with me on similar tasks on an adhoc basis.

I need someone w...read more

Firebase Expert Required To Update Code

Firebase expert wanted who can update some existing code to copy files from firebase dB to Aws S3 when uploaded from mobile

Need an Angular 7 developer for completing my Web App (Integrated with Firebase)

Hello, Please read the entire description before applying.

We need a freelancer familiar with Angular 7 to complete our Web App. The app is 1/4th done and integrated to Firebase. However there are about 6 unique screens remaining that need t...read more

React Native/Firebase expert on long term needed

Hello nice people

We are searching for a React Native/Firebase independent developer on a long term, we have few projects incoming. You will need to have:

- creative and clear mind
- must be reliable and committed to work
-...read more

AWS Serverless Stack Expert Needed

Looking for someone to help with setup/configuration of various serverless components as well as in-depth comparisons/consultations of available options. Good understanding of GCP/AWS serverless stack is required (DynamoDB, Firebase, Appsync, Lambda@...read more