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.17

Cost

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

Apple iOS developer needed to fix issues with our App

Apple iOS developer needed to fix issues with our App. The App was built in Xcode and we have the files.

We have a recorded video I can send you that shows exactly the issues that we need fixed.

Complete flutter+ firebase app

I need a flutter developer to complete an already started project.
The project uses Firebase as backend and screens have been completed
The app is meant to remind registered users on payment of their compliances they setup during registration...read more

iOS developer (firebase backend)

We are a startup focusing on creating a networking app for young adults. We really need someone who is experienced on the back-end side (Firebase, firestore) as we have most of our front-end finished. I am looking for someone long-term who is experie...read more

Android Firebase Developer

- Must have prior experience working with Android Studio and Firebase.
- Biweekly feature upgrades, bug fixes and stability upgrades for app.
- Must be able to meet deadlines and deliver projects on time.
- Must be responsive and flexible...read more

React Native Developer Needed for long Term

I am looking for an cross platform Developer who is deep experienced in React native. My current requirement is mostly based on UI/UX and can be done easily.