Thank you so much for your video, this is straight forward and easy for beginner like me to make my first step to connect React website with the database
@conorcoder7196 Жыл бұрын
Wow, these videos have saved me tonight. Thank you!
@tiedsergosu77153 жыл бұрын
Bro don't be lazy, these tutorials are what can make your channel explode. Keep making them, we're waiting for the sequels! Great content.
@ravenjs3 жыл бұрын
thanks @Sergosu! more will be coming this weekend :)
@hooho49111 ай бұрын
this is my first time learning firebase, you explained everything very well, thank you so much!
@rajthapa90062 жыл бұрын
you have the greatest firebase videos. other videos on youtube are outdated yours is the one working for me
@ADIYR2 жыл бұрын
always find a solution if you go to this channel, thank you bro, success always
@danielodiase68243 жыл бұрын
I never comment on anything on youtube but youtube needs to make your page bigger . ive been looking for an uptodate firestore video and this video helped me so much . Keep on going .Thanks !
@ravenjs3 жыл бұрын
thank you so much @Daniel
@joel_mathew3 жыл бұрын
Dude this is fire🔥🔥🔥🔥🔥 I was looking for a firebase firestore tutorial that is precise, up to date, simple to follow, and not 3 hours long and God blessed me with this firestore series please make content like this. Congratulations!!👏👏👏👏 You have earned a new subscriber.😃😃😃
@ravenjs3 жыл бұрын
@Overnight Creator this is amazing HAHA thank you so much for the praise, so happy to hear this :))
@MrCuteguylol3 жыл бұрын
Holy shit this channel is a life saver for new users trying to use firebase v9!
@ravenjs3 жыл бұрын
Haha thank you @Asad
@MrCuteguylol3 жыл бұрын
@@ravenjs thank YOUUUU sir
@suriya76463 жыл бұрын
This was super easy to undestand. Waiting for the next video.
@ravenjs3 жыл бұрын
thanks Suri :)
@2029leandro3 жыл бұрын
This is so great and easy to understand, and up to date too!
@ravenjs3 жыл бұрын
thx 2029leandro :)
@kushalshukla4443 жыл бұрын
Btw thanks for all , I was stuck in this problem from last 3 days and u sort it .🥂
@ravenjs3 жыл бұрын
@kushal that's awesome 😎 let me know whenever you need help next :)
@kushalshukla4443 жыл бұрын
@@ravenjs 🤜🤛
@rafaelsoteldosilva2 жыл бұрын
Hi!. Thank you for these great lessons.
@jeriahcolasino75882 жыл бұрын
youre the best dude.
@gauravsaini91863 жыл бұрын
This is just what I needed for help, thank you so much!
@ravenjs3 жыл бұрын
I'm glad it helped @Gaurav!
@krishnamuraree26623 жыл бұрын
Thanks man this video saved my hours😃
@ravenjs3 жыл бұрын
that's amazing :))
@IanMont3 жыл бұрын
Great tutorial!
@ravenjs3 жыл бұрын
Thanks Ian xD
@coderchic3 жыл бұрын
This was super helpful. Thanks!
@ravenjs3 жыл бұрын
thank you @Rose!!
@hirosyee3 жыл бұрын
Awesome!! I want to see how to get specific document with unknown id, and I hope you have already provided after this lesson. Thanks,
@shaheryartatari8642 жыл бұрын
amazing work man.
@catreunion3 жыл бұрын
thank you so much for giving us a great tutorial!
@lrajoo113 жыл бұрын
amazing stuff! super clear
@ravenjs3 жыл бұрын
thanks! :))
@mcdaddy13343 жыл бұрын
VERY NICE!
@ravenjs3 жыл бұрын
THANK YOU :))
@VladiGuitar873 жыл бұрын
Thank you so much for your work! I learn React in a course on udemy and their teach this topic not so well and partially in a deprecated way. Your channel helps me a lot!
@ravenjs3 жыл бұрын
Hey @Vladimir I'm flattered haha thank you so much :)
@brendanhurd813 жыл бұрын
I have a feeling I have been doing the same course and its been a nightmare.
@VladiGuitar873 жыл бұрын
@@brendanhurd81 haha 🙈 The complete react developer 2021, this one??
@brendanhurd813 жыл бұрын
@@VladiGuitar87 Bingo!!!
@magdolnakatay61583 жыл бұрын
Thank you so much!😲
@ravenjs3 жыл бұрын
You're welcome! :))
@arkindustries73473 жыл бұрын
Not finished watching but i want to comment first . Thanks in advance . I know its gonna cool 🙂
@ravenjs3 жыл бұрын
haha you’re cool too :))))
@arkindustries73473 жыл бұрын
@@ravenjs done watching dude, its really cool . And excited again for next . Authentication feature of firebase is i want to learn next and now you implementing it also . Thanks again , Keep it up
@IanMont3 жыл бұрын
@@arkindustries7347 I also want to learn the auth feature and also implement it with a profile picture uwu
@yashtripathi3133 жыл бұрын
Really helped!! Thank you for this awesome content @Logicism
@ravenjs3 жыл бұрын
thank you Yash!!!!
@henrydj32203 жыл бұрын
Very easy to follow thanks for the content! LIKE THE VIDEO PPL
@ravenjs3 жыл бұрын
YES THX @Henry Dj haHa :)
@Tony-jr3ki3 жыл бұрын
Hey! Great video, thanks. But how can you make colors display in order? And why do they appear the way they do?
@ravenjs3 жыл бұрын
Hey Tony! You can definitely make the colors display in order. The catch is that if you want to display the order by creation date, you'll need to create a new field to store the creation date in Firestore and write the logic for that because Firestore doesn't store timestamps by default. Or, if you just want to order the documents by name, you could do something like this: import { collection, query, orderBy, onSnapshot } from "firebase/firestore"; const collectionRef = collection(db, "colors"); const q = query(collectionRef, orderBy("name", "desc")); // Return unsub to useEffect() to terminate listener when unmounting const unsub = onSnapshot(q, (snapshot) => { // snapshot.map( anything in here ) }); In my example there isn't a specific order in which the colors are arranged because I didn't specify an order in the query.
@Tony-jr3ki3 жыл бұрын
@@ravenjs great! Thanks! Looking forward to the next video.
@ЭрикАрутюнян-х1к3 жыл бұрын
Continue I'm waiting for your videos
@ravenjs3 жыл бұрын
I will, thx for your encouragement haaha :))
@ЭрикАрутюнян-х1к3 жыл бұрын
@@ravenjs I really waiting)) I have a project to create the Slack clone, you r the one who have updated firebase information
@ravenjs3 жыл бұрын
@@ЭрикАрутюнян-х1к sorry have been busy lately but I promise you'll get a new video this weekend :))
@ЭрикАрутюнян-х1к3 жыл бұрын
@@ravenjs Thanks a lot
@oliverblackofficial3 жыл бұрын
Hi, cool Video! I have a question. I am using an input field to get the user input and it works fine to add it to a collection. But i takes a few seconds until it renders on my page, do u know why? I am using useState and useEffect the same way u did in your video
@ravenjs3 жыл бұрын
hey Oliver! I've noticed that this phenomenon is quite common if you use id=Math.random() in the React component. Are you doing something similar? If not, perhaps you'd like me to take a look at your code for you? You can put a short snippet either here or in pastebin :)
@Froylander3 жыл бұрын
Hi, how i can add a subcollection ??? i try this code but, i have an error... const collectionRef = collection(db, "chat", userSelected.id); await addDoc(collectionRef, user.id, objMessage); I want to add a document called like the receiver user (userSelected) and inside a subcollect called like the user (me) id, and inside a document with the message.... but I cant :(
@ravenjs3 жыл бұрын
could you show me the actual error output message?
@MrFlaviutz3 жыл бұрын
Great videos! How can you get data from one document? for me singleData doesnt have the data const singleData = await getDoc(doc(db, method, singleIdentifier)); console.log(singleData)
@ravenjs3 жыл бұрын
Your variable 'singleData' only stores the reference to your document in the database. You'll still need to singleData.data() to get the data from the document reference. So it'll be console.log(singleData.data()); Also, you can do singleData.exists() to check if the document exists in the database.
@_MoshikoAz_ Жыл бұрын
based on what you've said in this video, is that we don't have to specify an Id property in the collection, since firebase does that automatically for us ?
@MrCuteguylol3 жыл бұрын
Hi! I would like some help. Im building an app (POS) on react firebase. I need to do 2 things which im unable to do. First, whenever i push an entry (using form or something) into firebase i need firebase to create an id. (i know it makes u even showed it), but i need that ID dynamically INSIDE my pushed obj like {...obj,id: 'id'} because my issue is that i can't use that auto generated id in my data that i get from server. Secondly i need to perform this authentication. Where whenever i send my data to server, i want that some of my fields should remain unique. I have been trying very hard to do these things but i cant :'(
@ravenjs3 жыл бұрын
Hi @Asad, i don't think I understand your first question quite well, could you elaborate on the part about having an ID that is dynamically inside your pushed object? is it that you want to get the ID before pushing the object to the database? also, for the uniqueness constraint, it's a bit more tedious to enforce it with Firestore. Unlike MySQL or Postgres, you'll have to manually perform the uniqueness check with your own code. For example, you could use queries to check if the value already exists in the database
@MrCuteguylol3 жыл бұрын
haha actually i saw that u somehow did it yourself (i accidentally missed that part) using doc.id. Second question is a bummer. I dont want my forms to be expensive on the frontend :'(
@ravenjs3 жыл бұрын
@@MrCuteguylol yea it's really a bummer.. :(( i guess having the convenience of not needing to write an API like a rest API or even GraphQL comes at a cost heh worst case scenario: you could try and learn google cloud functions to do some serverless processing but that's a whole new topic
@BillyLegumbres Жыл бұрын
excuse me I got this error when I try to apply the steps that you show us in this vid "Uncaught (in promise) FirebaseError: Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore" and I'm not sure how to get around it
@danielodiase68243 жыл бұрын
please make a video where i can get the input to show at the top, preferrably with a timestamp method . Thanks !
@ravenjs3 жыл бұрын
do you mean an input field to replace the javascript prompt?
@danielodiase68243 жыл бұрын
@@ravenjs I mean just to be able to organize the prompt value based on time stamp . I saw that you covered it in later videos . So this was answered . Thanks for ur hard work
@mageshyt25502 жыл бұрын
bro how we can set custom id when we add new doc.
@ravenjs2 жыл бұрын
use setDoc instead of addDoc
@mageshyt25502 жыл бұрын
@@ravenjs i founded already anyhow thank you so much for your reply 🙂
@mixai73 жыл бұрын
how upload photo to firestore ?
@ravenjs3 жыл бұрын
for uploading photos, you might have to use cloud storage instead of just cloud firestore :)
@thetransolutions3 жыл бұрын
i want to add with custom id not set. how can i do that
@ravenjs3 жыл бұрын
Hi The only way is to use setDoc(), because addDoc() is specifically for if you want Firestore to automatically generate a document ID. Apart from that, setDoc should be able to do everything else if you want to create a new document with it.
@kaushalkumarmishra92013 жыл бұрын
Plz make admin panel tutorial...
@ravenjs3 жыл бұрын
@Kaushal I will! But I think the admin panel will be in its own seperate series. thanks for the suggestion Kaushal
@gigxr8 ай бұрын
whoever encounters error "Uncaught (in promise) FirebaseError: Missing or insufficient permissions." 1. go to rules in Cloud Firestore 2. in "allow read, write: false" , replace it to allow read, write: if request.auth != null;
@ginvgin3 жыл бұрын
Not all good devs use macs :)
@ravenjs3 жыл бұрын
Hahaah thanks for the compliment Gin AHAH :)))
@JacksonRossi2 жыл бұрын
If you want a randomly generated ID (so that you don't have to make a unique identifier each time), you can use add() as opposed to set() import { collection, addDoc } from "firebase/firestore"; // Add a new document with a generated id. const docRef = await addDoc(collection(db, "cities"), { name: "Tokyo", country: "Japan" }); console.log("Document written with ID: ", docRef.id);