Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

using Firebase as read only

I'm looking to move my json file to an database service. I've been looking at Firebase-- Firestore in particular.

What the website is, is a collection of recipes. Users can search for recipes by category. Or they can search by typing in ingredient.

I dont need to have users signing up and logging in.

Its not overly clear to me:

  1. If this service can be used as a 'read only' database to populate the website with what the user selects.
  2. If the database can be secure yet not have users sign up and log in.

Can anyone direct me to documentation/tutorial on the "how to" to have the data itself secured, but available for read only and without needing users to create log-ins.

Thank you, Lee

like image 904
Lee Avatar asked Mar 27 '26 06:03

Lee


1 Answers

  1. Yes
  2. Yes

You need to look into security rules to make sure your public read-only data is actually read only: Just allow read: if true for each collection that you want to give access.

like image 99
Doug Stevenson Avatar answered Mar 31 '26 09:03

Doug Stevenson



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!