Find more Network And System Administration Remote Jobs posted recently Worldwide

Required Firebase freelancer for Write firebase rules job

Posted at - Aug 24, 2019

Toogit Instant Connect Enabled


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 recuiterMember since Jun 15, 2017 Bill S.
from California, United States

Skills & Expertise Required

Firebase 

Candidate shortlisted and hiredHiring open till - Jun 19, 2020

Work from Anywhere
40 hrs / week
Fixed Type
Remote Job
$13.92
Cost

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


Apply on more work from home jobs posted in Network And System Administration category.