React Studio ❤️ Firebase

Photo by Jan Kolar / VUI Designer on Unsplash

React Studio app

Firebase Cloud Firestore plugins

Firebase plugin settings in React Studio’s Data sheet editor

What can you do with these plugins?

Queries and Collection paths
where("state", "==", "CA")
where("population", "<", 100000)
orderBy("name", "desc").limit(3)
orderBy("state").orderBy("population", "desc")
Example of Data sheet with data sorted by timestamp. See Query written in Query textfield.

Firestore Increment

Structuring the data

Excellent explanation of how one should model data when using Cloud Firestore database

Who can see and edit your data?

service cloud.firestore {
match /databases/{database}/documents {
match /userorganizations/{userorgId} {
allow read;
}

match /projects/{projectId} {
allow read;
}

match /expenses/{expenseId} {
allow read, write : if isMemberOfOrganization(resource.data.organization_id);
}

function isMemberOfOrganization(organizationID) {
return exists(path(“/databases/” + database + “/documents/userorganizations/” + request.auth.uid + organizationID));
}
}
}

Firebase Cloud functions

Example use cases for cloud functions:

Cloud storage

React Studio file upload plugin

Updating data with transactions

--

--

The premium app design tool for the most advanced JavaScript UI library — React JS www.neonto.com/reactstudio

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
React Studio

The premium app design tool for the most advanced JavaScript UI library — React JS www.neonto.com/reactstudio