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 May 20, 2018
Nisarg Jani
from Michoacan, Mexico

Skills & Expertise Required

Firebase 

Open for hiringApply before - Sep 26, 2024

Work from Anywhere

40 hrs / week

Fixed Type

Remote Job

$19.06

Cost

Offer to work on this project closes in 11 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

GCP Cloud, Big Data, Search Database Specialist

We are looking for a DBA help us make the right selections amongst horizontally scalable database options. We have detailed requirements of what we are looking for and are ourselves knowledgeable about he offerings, but are looking for a true archit...read more

Need help in mobile analytics using Firebase

Need help in generating customized reports using Firebase data. I will provide remaining details after hiring you.

Looking for a Developer for a short news/post/article application.

Android application for post articles with images & short text. Reference App- inshorts Please user inshorts as reference app, Not all features from inshorts are needed. Preferred backend: Firebase Front end (users end)- users see on screen image w...read more

Chatting system app for android and IOS

I need a chat system for a mobile app:
Register to the app using you phone number and send verification code to your number
Text message chat
Groups chat
Voice and video call
Send stickers
Recorder sound and send it
S...read more

Help us setup firebase analytics for a mobile app/game

We launched a new trivia game in google play
want to be able to set up and monitor the key analytics metrics and KPI

we need some help and consulting with this part in firebase analytics (GA is not supported anymore)

not on the...read more