Getting Started with Firebase 9 #4 - Firestore Setup & Fetching Data

  Рет қаралды 192,097

Net Ninja

Net Ninja

2 жыл бұрын

Hey gang, in this firebase 9 tutorial I'll show you how to setup & connect to a firestore database and fetch data once from a collection.
🐱‍👤 Course files:
github.com/iamshaunjp/Getting...
🐱‍👤 My Premium Udemy courses:
thenetninja.co.uk/udemy/react...
thenetninja.co.uk/udemy/vue-a...
thenetninja.co.uk/udemy/moder...
thenetninja.co.uk/udemy/d3-an...
🐱‍👤 Get access to all other premium courses on Net Ninja Pro:
netninja.dev/
🐱‍💻 My Social Links:
Facebook - / thenetninjauk
Twitter - / thenetninjauk
Instagram - / thenetninja

Пікірлер: 151
@JonMartins
@JonMartins Жыл бұрын
Finally!!! I've been looking on how to use Firebase/Firestore version 9 for the past two days. Loads of implementations. Firebase team really need to improve their docs. Thanks for that!!!
@constantine9074
@constantine9074 Жыл бұрын
Ive searched whoe youtube and web but this is the most comprehensive tutorial as of today !!!!!! dont waste your time.. this channel is all you need
@jarrodbogard
@jarrodbogard Жыл бұрын
your channel is so awesome. I spend hours trying to figure things out by reading documentation/articles and watching other tutorials, and then I watch one of your 10 minute videos and bam problem solved. thank you!
@bitterkofte
@bitterkofte Жыл бұрын
same for me too, ninja's videos work as a charm
@livewell453
@livewell453 2 жыл бұрын
My god I am SO GRATEFUL FOR THIS VIDEO AND FOR YOUR CHANNELL DUDE. I tried six different tutorials but the way you explained things and walked us through step by step is getting me past where I was stuck ! :-)
@miguelmason2536
@miguelmason2536 Жыл бұрын
trust me i have been looking all over the internet to figure it out and them BOOM .. Thanks @ The Net Ninja
@ashish_infinty2452
@ashish_infinty2452 Жыл бұрын
thanks a lot bro, i been facing lot's of trouble using firebase , you made it easy . you don't know how much I'm grateful for once again thanks
@lloyddugmore3554
@lloyddugmore3554 2 жыл бұрын
Bro!!! this was amazing, spent 2 days fighting with new version of firebase in a react app.... thanks for this
@saqibsyed8908
@saqibsyed8908 2 жыл бұрын
I was so much confused after seeing a lot of objects in repsonse but you helped me solve it. Thank you!
@sebastianadams
@sebastianadams 2 жыл бұрын
thank you so much, i tried three other tutorials and all of them left me with firebase not working at all because there were steps missing (I guess..!) but I have your example working pretty much in the time it took to watch the video. Amazing tutorial!
@thawyezaw5480
@thawyezaw5480 2 жыл бұрын
What an excellent explanation, man!
@fanboyono7960
@fanboyono7960 2 жыл бұрын
Seriously, what an amazing tutorial.
@user-zz7bc1xm7g
@user-zz7bc1xm7g 2 жыл бұрын
I have solved several problems watching your video, thank you very much!
@himanshuchauhan9208
@himanshuchauhan9208 2 жыл бұрын
And just like that you solved all of my version 9 related problems thank you very much.❤
@sananasir2436
@sananasir2436 Жыл бұрын
Thank you Ninja for being there..
@jomy10-games
@jomy10-games 2 жыл бұрын
Once again The Net Ninja to the rescue. The firebase docs did not help on this subject, but you got it right!
@jawadshaikh1745
@jawadshaikh1745 2 жыл бұрын
Your teaching way is awesome, Love from Pakistan ❤
@benmoody9334
@benmoody9334 Жыл бұрын
Amazing choice of book! Bring on number 3
@tharakaariyarathna9003
@tharakaariyarathna9003 5 ай бұрын
This was very helpful. Thanks🙌
@alimusa1056
@alimusa1056 2 жыл бұрын
thanks a lot for this tutorial you saved my day love u man 💖💖💖
@AARP41298
@AARP41298 2 жыл бұрын
thank you so much, now i can read and understand the offical docs
@pagevpetty
@pagevpetty 2 жыл бұрын
Shaun, this is great! Thank you so much! Are you going to be covering Firebase STORAGE in this course??? Pretty please do 🙏 😻
@nickkaragiannis8494
@nickkaragiannis8494 2 жыл бұрын
My man reading every book on my personal favorites list. Not only the best teacher but a man of culture as well :D
@codinghusky5196
@codinghusky5196 2 жыл бұрын
My main praising the dude for being nearly as good as himself... Not only pretentious but narcissistic AF.
@jaumegenaro7673
@jaumegenaro7673 4 ай бұрын
@@codinghusky5196 its not that deep
@felixbecquart
@felixbecquart 2 жыл бұрын
You definitly become my favorite teacher (just in front of Maximilian Schwarzmüller)
@cookpatrick.9737
@cookpatrick.9737 2 жыл бұрын
Hello
@maskman4821
@maskman4821 2 жыл бұрын
The Net Ninja is the best 🤩
@danielmartinezvillegas4166
@danielmartinezvillegas4166 2 жыл бұрын
ooooffffff Maximilian Schwarzmüller top
@hamidr8391
@hamidr8391 2 жыл бұрын
Thank you sooo Much!! genuine content
@charlenem6040
@charlenem6040 4 ай бұрын
this works so well thank you!!
@NetNinja
@NetNinja 4 ай бұрын
You're welcome! :) glad it helped
@edisonmondal2798
@edisonmondal2798 Жыл бұрын
Sir! You have saved my life ❤❤🔥🔥🖤🖤
@brunoalexandre4274
@brunoalexandre4274 2 жыл бұрын
huge help, keep going!
@romanr5962
@romanr5962 Жыл бұрын
God bless you, man. Thanks
@darrionn33
@darrionn33 2 жыл бұрын
i just wanna say you have amazing taste in books
@bubsztyn
@bubsztyn 2 жыл бұрын
8:26 just a small thing that cought my attention - you are adding elements to array but you don't change the referenced object so const would be fine (preferable) in this case. Also maybe that's intentional for the simplicity sake but using .map there is much cleaner imo. Anyways, great tutorial as always!
@SwankyMarrow212
@SwankyMarrow212 Жыл бұрын
Would you recommend doing a for loop instead of forEach when doing this sort of iteration as it would typically be faster? Obviously, this data set we are working with is very small, so it won't make a noticeable difference. If the bottleneck is going to come from the google side of the fence, it may not matter
@DDOCTORGaming
@DDOCTORGaming 2 жыл бұрын
Hi, by any chance do you have a video which you can link me to, that tackles the function of reading out-loud data fetched from Firestore as audio to user? Thanks
@justthinguyen
@justthinguyen Жыл бұрын
you just saved my day!!!! thank you sooooo much!!!!!
@NetNinja
@NetNinja Жыл бұрын
Glad it helped Thi! :)
@bluewonk9232
@bluewonk9232 Ай бұрын
Thank you so much !
@ChandanKumar-of1je
@ChandanKumar-of1je 2 жыл бұрын
Who's the best? who? who? who? ... everyone: The Net Ninja Shaun
@maskman4821
@maskman4821 2 жыл бұрын
+1
@opiojohn
@opiojohn 12 күн бұрын
Thanks a million times
@mrhidetf2
@mrhidetf2 2 жыл бұрын
The name of the wind is an amazing book. Great example :p
@mohamedikbalbenahmed9427
@mohamedikbalbenahmed9427 2 жыл бұрын
Could you please tell us how to use the reading functions that are mention in the docs ( Using await )
@matthewbeardsley7004
@matthewbeardsley7004 2 жыл бұрын
Any particular reason you used let over const for the books array instead, as it's not reassigning the variable, so the code would work.
@salsabeel1077
@salsabeel1077 11 ай бұрын
Bro Thanks a lot i spend many hours to figure this out this 10 min video easily find the solution😁🤩
@NetNinja
@NetNinja 11 ай бұрын
Awesome to hear! :) 👍
@tech3425
@tech3425 2 жыл бұрын
Great course! Looking forward to more indepth Firebase 9 courses
@anandgomaskar2210
@anandgomaskar2210 Жыл бұрын
thanku so much upload this video sir
@pranavrajeshmadhani6260
@pranavrajeshmadhani6260 2 жыл бұрын
extremely helpful especially given that firebase docs suck.
@anazi
@anazi Жыл бұрын
I love you man !
@tuananhdo1870
@tuananhdo1870 2 жыл бұрын
10:09 I think we can also use the 'map' method here
@chriswestphal26
@chriswestphal26 8 ай бұрын
mind sharing where or how you get that firebaseConfig?
@Yogamindmastery
@Yogamindmastery 4 ай бұрын
Net ninja is the best
@syedzeeshanjafar137
@syedzeeshanjafar137 2 жыл бұрын
Can someone help me with a problem. After we initialise everything at 7:38 he says that we open it in browser preview but when I do it nothing comes up
@jonathanm.5813
@jonathanm.5813 2 жыл бұрын
I've got a weird error => Module '"firebase/firestore"' has no exported member 'collection', is it because typescript is allergic ? :)
@dm33472
@dm33472 8 ай бұрын
for my firebase, i have a document within a collection which is within another document within another collection, so basically it is in this form: appliances/Home/TVs/Auto-ID. Ive done what youve done above and it doesnt seem to work, im pretty sure its because of the structure of my firestore database. i cant see the innermost data that i want. how can you help me
@denisewasserman2180
@denisewasserman2180 2 жыл бұрын
If there is another collection in the current collection, how can I access it? For example, my quiz app has different categories and within those categories there is a different collection of questions. I would be glad if you help :))
@IliyaDamyanov
@IliyaDamyanov 4 ай бұрын
Nice video
@swapnilcodes
@swapnilcodes Жыл бұрын
How to join two collections in firebase?? Suppose I have two collections which contains movie name n id and another contains movie id from first collection and other movie details...then how can I join those collections??
@johncmm9759
@johncmm9759 9 ай бұрын
Hey man! I referenced your code and learned from you for an app I'm launching. Would you prefer I credit you in the documentation? Thanks for all the help man you've been of great help in my coding journey!
@nanditanikam1202
@nanditanikam1202 2 жыл бұрын
Thanks a lot
@PeriklesPeriklesoglu
@PeriklesPeriklesoglu 9 ай бұрын
thank you
@ahmedabdel-aal8404
@ahmedabdel-aal8404 8 ай бұрын
This video is amazing I have been searching the web for 2 hours and this was the only actual tutorial that worked, thanks and keep it up
@NetNinja
@NetNinja 8 ай бұрын
Glad I could help :) thanks
@ukasz7413
@ukasz7413 8 ай бұрын
Hi, did you change something to make it work for you? I do everything in the guide and at 7:21 I have no results.
@filipantonsson6204
@filipantonsson6204 2 жыл бұрын
Anyone know what kind of code formatter he's using? I think I've seen before that he's using Prettier, though my Prettier doesn't look the same...
@mohamedyoussef8835
@mohamedyoussef8835 2 жыл бұрын
Awesome Tutorial ++++++++++++++++++++ Thank You
@homeofsports3295
@homeofsports3295 2 жыл бұрын
where did you get the firebaseConfig?
@himbary
@himbary 2 жыл бұрын
You are the best
@user-qp6yp4qk9i
@user-qp6yp4qk9i Жыл бұрын
ran into a problem "module does not provide an export named 'getFireStore'". how to fix it?
@heyIappreciateit
@heyIappreciateit 2 жыл бұрын
Can you please include the admin sdk on this tutorial? Please?
@tamalemuncher789
@tamalemuncher789 Жыл бұрын
How do I access the individual properties of each of those
@ShadyPencil
@ShadyPencil 2 жыл бұрын
Duper eager for the next video. I wish you'd do a netflix type release all episodes in one go 😀
@DavePerth
@DavePerth 2 жыл бұрын
You can, check out the first video in this course that mentions how to do that!
@michaeljojo6305
@michaeljojo6305 2 жыл бұрын
"Unhandled Rejection (FirebaseError): Invalid collection reference. Collection references must have an odd number of segments, but *path* has 2." Does anyone know how to fix this problem?
@scars5019
@scars5019 Жыл бұрын
how would i be able to load my data from my firestore DB onto my HTML table as i completely stuck so i would really appreciate it if someone could assist me with this please
@christianedwin7597
@christianedwin7597 Жыл бұрын
I ran into a problem of can't use import outside of module while importing the initialize app on firebase , Went back and added type:"module" to Json file , And added type module to the script but it's still not working
@nyambe
@nyambe 2 жыл бұрын
Where do we set the type in doc.data()
@nemanjamijucic
@nemanjamijucic Жыл бұрын
Save button is disabled when I tried to create a collection and add it's first document.
@udaykiran4912
@udaykiran4912 2 жыл бұрын
web pack is necessary for firebase 9, without webpack i didn't get output
@ignacioleal8651
@ignacioleal8651 Жыл бұрын
Is there a new update that age TS the way this is done because it's giving me an Error that .initalizeApp is not a function
@user-jf1pc4us8q
@user-jf1pc4us8q 16 күн бұрын
Sir, Your tutorial is great. But I have a question in my mind. If someone inspects the website ,can easily copy and paste the Firebase configuration and can easily get access to it. So how can the problem be solved? Please help😢
@nickkaragiannis8494
@nickkaragiannis8494 2 жыл бұрын
Can you create a video on how to intergrate firebase with angular?
@saksshi
@saksshi 2 жыл бұрын
Can someone help me with a problem. After we initialise everything at 7:38 he says that we open it in browser preview but when I do it nothing comes up and I do not understand how to overcome the issue
@syedzeeshanjafar137
@syedzeeshanjafar137 2 жыл бұрын
same
@AzanVlogs671
@AzanVlogs671 10 ай бұрын
same @@syedzeeshanjafar137
@beep1677
@beep1677 2 жыл бұрын
can someone tell how can i access a nested doc for ex I have collection products inside products each doc has sub collection of categories . so path goes products/pid/categories/cid so then how can i access the document of sub collection that is categories (bad example but u got it). Thanks.
@codescooper3068
@codescooper3068 2 жыл бұрын
have you find how since ?
@NoeCortes
@NoeCortes Жыл бұрын
hello sir, I just followed every step of the way but I get this error message saying "doc is not defined" please help
@cianodubhghaill
@cianodubhghaill 2 ай бұрын
I followed along but wasn't able to get the data from the database onto the console
@zwozoa5630
@zwozoa5630 7 ай бұрын
ur awesome
@nicetomeetugaming7024
@nicetomeetugaming7024 Жыл бұрын
Good.
@terminatrs1301
@terminatrs1301 3 ай бұрын
i copied exactly but it is not able to get data from from my collection.... pls help someone
@marcosboero6881
@marcosboero6881 2 жыл бұрын
Kvothe approves
@balsahajdukovic7734
@balsahajdukovic7734 2 жыл бұрын
The goat book
@darrionn33
@darrionn33 2 жыл бұрын
was looking for this comment the moment he said notw🤣
@Alexicoo
@Alexicoo 2 жыл бұрын
Aaaaaand stuck :"Uncaught SyntaxError: Cannot use import statement outside a module"
@Engieboy12i
@Engieboy12i 2 жыл бұрын
You legend
@chrisamuzie401
@chrisamuzie401 2 жыл бұрын
I am getting this annoying error saying @firebase/firestore: Firestore(9.6.2) could not reach cloud Firestore backend. Backend didn't respond within 10 seconds. Help me please sir :(
@codescooper3068
@codescooper3068 2 жыл бұрын
same problem have you find why since ?
@alexpiano
@alexpiano 2 жыл бұрын
I had to re-run npm run build again to be able to console.log the snapshot.docs
@jazellefatimaimperial7899
@jazellefatimaimperial7899 3 ай бұрын
important
@aaronl8443
@aaronl8443 Жыл бұрын
you are god!
@codewithallen
@codewithallen Жыл бұрын
can someone help.. it giving an error "can't use import module outside......"
@yun-ruzeng5026
@yun-ruzeng5026 Жыл бұрын
gooooood
@va9if
@va9if 2 жыл бұрын
8:44 just use .map(d=>d.data())
@CryPoison
@CryPoison Жыл бұрын
ı had "Couldn't react backend" "Permission denied" error. I just needed to "npm run build" again to initialize webpack. BTW ninja's folder might be old. Try with your own project.
@iBen-ry6pj
@iBen-ry6pj 10 ай бұрын
Am following your v9 tuts while using v10.1.0. While the imported methods are all the same, the properties of the objects they return keep changing from version to version. Now docs from getDocs are so deeply nested that I feel provoked. Also, I could only find doc's ID in an array(imagine the nonsense) in one far deep nest. Am not even sure if this id will maintain it's index for everything doc in every collection. 😢
@ilyesilyes8483
@ilyesilyes8483 4 ай бұрын
Did you find any up to date tutorials or document for the new version(v.10), if you did plz let me know.
@markograhovac6860
@markograhovac6860 2 жыл бұрын
Is laravel 8 tutorial coming this year?
@tuananhdo1870
@tuananhdo1870 2 жыл бұрын
I think laracast do a very good job, but other than that, net ninja is my goto
@althairmahatirta5503
@althairmahatirta5503 2 жыл бұрын
wow thank you! i
@NetNinja
@NetNinja 2 жыл бұрын
You're welcome! :)
@Yogamindmastery
@Yogamindmastery 4 ай бұрын
If someone is unable to fetch data from firebase then check firebase rules tab
@nigelpallatt
@nigelpallatt 2 жыл бұрын
With the greatest respect to you and Firestore/base: Do you really think in this day and age that anyone would go through all of this just to link to a DB I thought the point of software is to make it easy for the user, this is not easy its CRAZY, config this import that my head is spring and I have no idea what's happened or happening - I'm back the MySqli...
@iBen-ry6pj
@iBen-ry6pj 10 ай бұрын
That not being enough, they keep changing the return object of getDocs. In V10.1.0, you'd never guess where a doc id is.
@manoj-k
@manoj-k 2 жыл бұрын
🔥🔥🔥
@livewell453
@livewell453 2 жыл бұрын
I’m having an issue with the array returned being a length of 0 but containing a whole list of properties and technical jargon, instead of containing the data in the collection. Gonna go to bed now and try again tomorrow afternoon :) anyone had a similar problem?
@Kingerious_
@Kingerious_ 2 жыл бұрын
yep im having the same problem i think im gonna try going to the docs
@kezicss
@kezicss 2 жыл бұрын
same problem
@kezicss
@kezicss 2 жыл бұрын
nvm i skipped the part at 8:30 where he changes the code to show doc data
@bid0u12345
@bid0u12345 8 ай бұрын
Did I miss something or you don't show us how to actually display both authors and titles on a webpage? Because displaying it in the console alone is useless. 🤔 How do I use, for example; books.title in a return statement like My first book's title: {books.title} ??
@vishalanthony1529
@vishalanthony1529 2 жыл бұрын
Way Better than Maximilian.
@thomasventura6412
@thomasventura6412 Жыл бұрын
Uncaught (in promise) FirebaseError: Missing or insufficient permissions. anyone else having this problem?
Using Cloud Firestore For Your REACT Backend 2023 | CRUD App
51:15
Travis Media
Рет қаралды 19 М.
Smart Sigma Kid #funny #sigma #comedy
00:25
CRAZY GREAPA
Рет қаралды 14 МЛН
The child was abused by the clown#Short #Officer Rabbit #angel
00:55
兔子警官
Рет қаралды 24 МЛН
Model Relational Data in Firestore NoSQL
9:13
Fireship
Рет қаралды 369 М.
Firebase Firestore Database Tutorial For Beginners [2024]
37:16
SoftAuthor
Рет қаралды 2,1 М.
Firebase - Ultimate Beginner's Guide
21:45
Fireship
Рет қаралды 1 МЛН
React Authentication Crash Course With Firebase And Routing
56:00
Web Dev Simplified
Рет қаралды 648 М.
Firebase - Back to the Basics
25:23
Fireship
Рет қаралды 582 М.
tRPC, gRPC, GraphQL or REST: when to use what?
10:46
Software Developer Diaries
Рет қаралды 72 М.
Smart Sigma Kid #funny #sigma #comedy
00:25
CRAZY GREAPA
Рет қаралды 14 МЛН