How to use Firebase Firestore with ReactJS. Firebase CRUD tutorial.

  Рет қаралды 70,473

Maksim Ivanov

Maksim Ivanov

Күн бұрын

Пікірлер: 141
@anonysmooth648
@anonysmooth648 4 жыл бұрын
19:57 "all are misspelled," I thought you are going to correct it hahahahaha
@rijden-nu
@rijden-nu 4 жыл бұрын
I laughed out loud :D
@drewstifler1440
@drewstifler1440 4 жыл бұрын
i shit brick hahahahaha
@zentekvideogames3589
@zentekvideogames3589 4 жыл бұрын
Is amazing how his VS Code Theme matches his room color pallet too.
@simonfoster9426
@simonfoster9426 4 жыл бұрын
Youre right! Good eye
@supriyjinturkar7477
@supriyjinturkar7477 3 жыл бұрын
👀
@ut5941
@ut5941 4 жыл бұрын
Thank you for a clear and easy-to-follow tutorial, I think so far this was the most useful Firestore tutorial I have seen.
@iagobarretoc8194
@iagobarretoc8194 4 жыл бұрын
i'm with you, this is by far the cleaner way of consuming firebase using react
@rijden-nu
@rijden-nu 4 жыл бұрын
Holy shit. React/firebase beginner here. These must have been one of the most informative 20 minute video's I've ever seen in my life. Thanks for actually doing *everything* live, it's so much easier to follow than just cloning a project and trying to understand what does what. The way you add things is so natural, and your process/procedure shows me as a beginner so much about how to think about building React classes/functions from scratch! You, my friend, have made my day.
@satansdeer1
@satansdeer1 4 жыл бұрын
thanks. So if i understand you correctly the key is that i just live code with my own pace instead of explaining pre-written code right? And for example this video is harder to digest kzbin.info/www/bejne/oYmbk6xqmqisfZY
@satansdeer1
@satansdeer1 4 жыл бұрын
Im still learning what is the right approach to instructional videos
@rijden-nu
@rijden-nu 4 жыл бұрын
​@@satansdeer1 YES! Your calm and deliberate speech and voice works great too. Nice, well-formed sentences, no stress, very inviting. About that other video, well, if nothing else, that video is muuuch denser. You start out with a much more complete and prepared codebase, which contains stuff that I would have to dive into to understand. And then you talk for minutes about something on the screen. It's like a PPT presentation :) Now, I know myself, I'd probably just end up getting bored, cloning the code, and kind of 'borrowing' the pieces I could use. Useful to get something done quick, but I would understand less of what's happening. Of course that topic is a lot denser than the really basic one in this video and it would take much longer to write realtime, and it needs some background understanding/homework, so maybe there's no way around it for topics like that. But I'd probably prefer writing the code that connects the dots in front of me, and then maybe make changes in other parts of the code to understand what's what. Not sure, just fantasizing. You know, like back in school. If the math or physics teacher gives you a sheet of formulas, you can put a number in on one end and get a number out on the other, but if she shows you how to arrive at the conclusion that it's the correct formula to use (even though she keeps saying 'it depends on this-and-that piece of knowledge - we'll get to that later, just trust me now and lets focus on this''), you actually know how to work with it instead of simply repeating a monkey trick. If that makes sense :) sorry for the long deliberation. Maybe I'm all off-track. So in conclusion, I think the reason this particular video worked so well (for me!!) is that I can see in what order you think about your code additions, so it grows in front of my eyes.
@rijden-nu
@rijden-nu 4 жыл бұрын
Also, the joke you end it on. It works so well that I'm not sure you did it on purpose or not. But it makes me remember the video. I laughed out loud :)
@satansdeer1
@satansdeer1 4 жыл бұрын
ok, i see. Thanks for great reply!
@grf0
@grf0 4 жыл бұрын
The colors of his Visual Code editor is the same palette as his video for skin color, hair color, wall color and furniture color. Well done!
@satansdeer1
@satansdeer1 4 жыл бұрын
grf0 ahahahaha
@varsa1198
@varsa1198 3 жыл бұрын
Haven't been this excited to finish a project in a long time, I have also added a function to add images, which is the same as for the name, you just paste the url instead of the name and it worked like a charm! You Sir are very good!!! Subscribed and liked!
@gregchapman1461
@gregchapman1461 2 жыл бұрын
Thanks for the great video. Also Maksim Ivanov one of the coolest names I've hear in a while lol
@skepticmoderate5790
@skepticmoderate5790 4 жыл бұрын
If you get 404 on `npm i --save-dev firebase-export-impot`, you need to change it from 'firebase' to 'firestore. So instead, you will execute `npm i --save-dev firestore-export-import`. Not sure why he didn't edit his mistake out...
@Chakalabkarina2357
@Chakalabkarina2357 3 жыл бұрын
actually he said npm i --save-dev firestore-export-impot....
@ssuriset
@ssuriset 3 жыл бұрын
LIFESAVER DETECTED
@andrewmukare3433
@andrewmukare3433 3 жыл бұрын
if i could give you a thousand likes i would, I was honestly stuck on achieving CRUD on my firestore data. Thank you for making this video!!
@dcd_music
@dcd_music 4 жыл бұрын
From where do you download the data.json file? Thanks!
@davidgonzalez965
@davidgonzalez965 3 жыл бұрын
Hahaha, that misspelling trick was awesome! Loved it!
@yoursnagaraju
@yoursnagaraju 3 жыл бұрын
Really clear and focused material..all the best!!
@isaias3276
@isaias3276 4 жыл бұрын
15:18 Thanks for doing this part! I was struggling to pass in my document id into my fetched data in my own application
@nikhilkandekar9124
@nikhilkandekar9124 3 жыл бұрын
FROM 19:37 "oh I misspelled delete" Goes on to misspell every word. What a chaos!!! I laughed soooo hard
@nilmendes7710
@nilmendes7710 5 жыл бұрын
Straight to the point and well explained. Congratulations on the tutorial, it helped me a lot!
@satansdeer1
@satansdeer1 5 жыл бұрын
Nil Mendes , thanks, let me know what else do you wanna see in my tutorials
@nilmendes7710
@nilmendes7710 5 жыл бұрын
@@satansdeer1 Ok. Express.js, modern javascript techniques, firebase from basic to advanced and node.js. If possible long tutorials (I like them because they often come up with tips, suggestions along the way).
@satansdeer1
@satansdeer1 5 жыл бұрын
@@nilmendes7710 wow, that was fast. Thank you, for these
@nilmendes7710
@nilmendes7710 5 жыл бұрын
@@satansdeer1 I thank you! Success in your projects!
@Alex-hs8xj
@Alex-hs8xj 3 жыл бұрын
7:35 GET 14:10 SET (update) 17:00 DELETE 19:05 ADD
@chris78945
@chris78945 4 жыл бұрын
You are the maximum, Maksim! You make it all so simple :-)
@satansdeer1
@satansdeer1 4 жыл бұрын
:-) ahah, thanks
@ristolibera1295
@ristolibera1295 3 жыл бұрын
Your tutorial are brilliant!
@mealua
@mealua 2 жыл бұрын
I actually ended up here because I was looking for a database for my pet DnD react app :):)
@mealua
@mealua 2 жыл бұрын
instant like and subscribe! :)
@dineshwijesuriya4899
@dineshwijesuriya4899 4 жыл бұрын
Really helpful video for a beginner. Thanks a lot
@ml2981
@ml2981 4 жыл бұрын
This video is super helpful. I hope you can make more videos about React + Firebase tech stack. Most of the React videos are about React + MongoDB or React + GraphQL, hard to find any React + Firebase video.
@satansdeer1
@satansdeer1 4 жыл бұрын
nooby cool, what would you like to learn?
@joeblow8394
@joeblow8394 4 жыл бұрын
@@satansdeer1 React + Firebase + FullCalendar would be cool :)
@abreguabel
@abreguabel 4 жыл бұрын
Maksim, muy claro tu video ! Genial ! Muchas gracias
@leonardocamargo5412
@leonardocamargo5412 4 жыл бұрын
Why you don't show the content of serviceAccountKey.json ?
@boopfer387
@boopfer387 3 жыл бұрын
k, you can add for spells: github.com/jcquinlan/dnd-spells 1) for this spells file you will need to convert to valid JSON - replace lines 1-3 make it an object '{ "spells": [ ' b) to the last line add a closing } at the very end. 2) google seemed to have changed the auth for Node so your code snippet should look like this: var admin = require("firebase-admin"); const { restore } = require("firestore-export-import"); const serviceAccount = require("./serviceAccountKey.json"); admin.initializeApp({ credential: admin.credential.cert(serviceAccount) }); restore("./spells.json");
@dariozalac598
@dariozalac598 3 жыл бұрын
Thank you for this! This did help a lot!
@boopfer387
@boopfer387 3 жыл бұрын
@@dariozalac598 Hello Dario glad it helps - awesome feel free to join coding coach’s slack
@pajohns
@pajohns 4 жыл бұрын
Awesome and simple tut - thanks
@mtcindianutube
@mtcindianutube 4 жыл бұрын
@ 03:18 , the uploadScript folder already contains the node_modules, could you please comment on that how to add node_modules there by default? i tried npm init but I got only package.json there.
@nileshdhruv8431
@nileshdhruv8431 4 жыл бұрын
Fun Fact: At 8:41 in line 15 if you remove "[ ]" then data will automatically gets updated (no need to reload), then you don't need to use snapshot. If anyone knows how and why this works like that or if that can be used in production (does it cause any harm?), plz let me know
@satansdeer1
@satansdeer1 4 жыл бұрын
Nilesh Dhruv if you remove the [] it will make the useEffect trigger on every component update, and you might end up with update-loop reactjs.org/docs/hooks-effect.html
@brsh1190
@brsh1190 3 жыл бұрын
@@satansdeer1 so how to make it reload in correct way?
@cpc4466
@cpc4466 3 жыл бұрын
Thank you Maksim
@ytc3753
@ytc3753 4 жыл бұрын
you just got a new sub. thanks a lot
@fonncatalina6464
@fonncatalina6464 3 жыл бұрын
You save my ass! Thank you! Clear my bad day get stucked just to a todo app...
@boopfer387
@boopfer387 3 жыл бұрын
where is the 2nd video on subscribing to the changes?
@ss-bd9ru
@ss-bd9ru 4 жыл бұрын
Any idea why the import firebase at the top of the firebase.js is causing unexpected use of 'self' errors?
@mine1459
@mine1459 4 жыл бұрын
Thanks so much for the tutorial
4 жыл бұрын
Stead of using npm start, would you firebase serve tool?
@HIghtowerSever
@HIghtowerSever 4 жыл бұрын
Молодец, Максим! Инглиш тоже ОК. Кип гоин ;)
@satansdeer1
@satansdeer1 4 жыл бұрын
😊 Спасибо
@ynaveenkmr5943
@ynaveenkmr5943 4 жыл бұрын
Hi bro where do you kept 'data.json' file and from where we can get 'serviceAccountKey.json' file
@mariavarvaroi
@mariavarvaroi 4 жыл бұрын
Thanks a lot! You saved my day! 🙏
@amritraj658
@amritraj658 3 жыл бұрын
I am trying to update data but i can't, But after watching your video I can do so thank you
@bocarilla9772
@bocarilla9772 3 жыл бұрын
Hi! just wondering if you could teach us how to configure useEffect to automatically update without refreshing
@300deQI
@300deQI 4 жыл бұрын
Next 007 confirmed
@lehieu3281
@lehieu3281 4 жыл бұрын
thanks you, i have ran. but when i anable inspect in browser, anyone can see my config of firebase. so do they attack my db on Cloud Firebase ?
@techjandro
@techjandro 4 жыл бұрын
Hi Maksim, I just subscribed to your channel and I'm loving it :-). BTW, what's your theme or color schema got Visual Studio Code?
@wasseemzaher
@wasseemzaher 4 жыл бұрын
very good video. thank you!
@juanhuenchun8908
@juanhuenchun8908 4 жыл бұрын
Where i can find data.json?
@thomashoenselaars920
@thomashoenselaars920 5 жыл бұрын
This is amazing, any ETA on the subscribing to changes in the db tutorial? Thanks a lot!
@satansdeer1
@satansdeer1 5 жыл бұрын
Thomas Hoenselaars currently working on custom hooks tutorial, so probably in 2 weeks or so
@thomashoenselaars920
@thomashoenselaars920 5 жыл бұрын
Maksim Ivanov great, thanks for the quick reply!
@satansdeer1
@satansdeer1 5 жыл бұрын
Thomas Hoenselaars and thanks for support!
@thorstenbruening
@thorstenbruening 5 жыл бұрын
@@satansdeer1 Eargerly waiting for the subscribing to changes video... Carry on, Maksim. Thank you very much. Gruß TB
@lydiac3038
@lydiac3038 4 жыл бұрын
Hey, would you be able to show how to upload images using firebase storage and referencing them in Firestore as part of the form of a CRUD app?
@stomperhk9107
@stomperhk9107 3 жыл бұрын
You can store the image URL in the database and then use it.
@riflan0ahmed
@riflan0ahmed 4 жыл бұрын
Anyways , thanks It was a great work for beginner Everything is work fine but there were some other issues in console
@vladimirsterlin9078
@vladimirsterlin9078 5 жыл бұрын
1) What vscode theme are you using? 2) On about 1:43 you copy the firebase config but not the other script that is above it, why do you not need it?
@satansdeer1
@satansdeer1 5 жыл бұрын
Vladimir Sterlin i use material theme, palenight option i didn't need the script because i use firebase as an npm package
@vladimirsterlin9078
@vladimirsterlin9078 5 жыл бұрын
Maksim Ivanov thanks!
@vladimirsterlin9078
@vladimirsterlin9078 5 жыл бұрын
Maksim Ivanov I checked out that theme and it has very different coloring. Did you customize yours somehow?
@satansdeer1
@satansdeer1 5 жыл бұрын
@@vladimirsterlin9078 no, hmm, it actually might be another one "synthwave 84"
@mihail.sitnic
@mihail.sitnic 3 жыл бұрын
Hi, mate! Could u create a tutorial How to use Firebase Firestore with Firebase functions? Cheers!
@howwwwwhy
@howwwwwhy 4 жыл бұрын
very helpful. Thank you. Could you include this video in React+Firebase playlist? If so, I can find easily. Anyway thank you!!!
@satansdeer1
@satansdeer1 4 жыл бұрын
HoW_3W Why yeah will do
@jeucasulo
@jeucasulo 4 жыл бұрын
Hi, I think I can say you have "2 firebase configurations". The first one in uploadData.js and the second on firebase.js. They dont seem to comunicate with each other, right? I mean, you dont need the first one to use the second and so. The thing is I use the firebase.js version only and i can access the realtime database, but only with I set the security to "test mode" (allow read,write) in Storage. I wonder if the second one could be the solution
@satansdeer1
@satansdeer1 4 жыл бұрын
Yeah the one in upload data is only used for this script
@jeucasulo
@jeucasulo 4 жыл бұрын
@@satansdeer1 ok thank you dude!
@ahmadazharbasyir737
@ahmadazharbasyir737 4 жыл бұрын
Please give tutorial display data from firestore to datatable
@nairgh
@nairgh 4 жыл бұрын
Thanks for the great and right to the core tutorial. Appreciate your great work. Are you thinking of creating user authentication system in react-firebase. It should be cool.
@satansdeer1
@satansdeer1 4 жыл бұрын
Thanks, yes I plan to make a video about authentication later
@lazgre777
@lazgre777 4 жыл бұрын
where to download data.jsoN????
@panosmania
@panosmania 4 жыл бұрын
the same code works if i set up a real database (firebase) or only or firestore???
@satansdeer1
@satansdeer1 4 жыл бұрын
You should be able to switch to fairbase without any changes. Here is the comparison of two firebase.google.com/docs/firestore/rtdb-vs-firestore
@liedellidmi4169
@liedellidmi4169 5 жыл бұрын
Thank u very much it's very good tuto :)
@satansdeer1
@satansdeer1 5 жыл бұрын
Oh, thanks!
@feeelgoood
@feeelgoood 4 жыл бұрын
Супер! Все понятно объяснил.
@raulstory6146
@raulstory6146 5 жыл бұрын
Hi My friend. Excellent your explanation. Could you please clarify in this structure how I can orderBy the data of this collection. Thanks
@satansdeer1
@satansdeer1 5 жыл бұрын
RALPH STORY you mean how can you sort the items?
@justinmadridano581
@justinmadridano581 4 жыл бұрын
I have this SyntaxError: D:\upload-script\serviceAccountKey.json: Unexpected end of JSON input at parse () when i typed node uploadData.js
@grf0
@grf0 4 жыл бұрын
Tip, watch this video in 0.75 speed
@sergeypushkovskiy5790
@sergeypushkovskiy5790 5 жыл бұрын
When are you going to release next video on how to subscribe to changes and reload app?
@satansdeer1
@satansdeer1 5 жыл бұрын
Sergey Pushkovskiy expected it this monday
@sergeypushkovskiy5790
@sergeypushkovskiy5790 5 жыл бұрын
Maksim Ivanov Thanks. Will be waiting for new videos
@julioipora
@julioipora 3 жыл бұрын
love you bro
@RajkumarSingh-sb4fj
@RajkumarSingh-sb4fj 4 жыл бұрын
I have placed data.json file along with uploadData.js (same directory), data hasn't been uploaded, plz help me where to place the data.json file? My data.json file { "spells":[ { "id":1, "code":101, "name":"Research and Developemnt", "parent":"-", "employee":90, "resignee":8 }, { "id":2, "code":102, "name":"Technical Support", "parent":"-", "employee":20, "resignee":3 }, { "id":3, "code":103, "name":"Information Technology", "parent":"-", "employee":40, "resignee":2 }, { "id":4, "code":104, "name":"HR Department", "parent":"-", "employee":5, "resignee":2 }, { "id":5, "code":105, "name":"Account Department", "parent":"-", "employee":10, "resignee":2 }, { "id":6, "code":106, "name":"Department Name", "parent":"-", "employee":90, "resignee":8 }, { "id":7, "code":107, "name":"Department Name", "parent":"-", "employee":90, "resignee":8 }, { "id":8, "code":108, "name":"Department Name", "parent":"-", "employee":88, "resignee":8 }, { "id":9, "code":109, "name":"Department Name", "parent":"-", "employee":90, "resignee":8 }, { "id":10, "code":110, "name":"Department Name", "parent":"-", "employee":90, "resignee":8 } ] } Is it correct ???
@vincemaquilang7848
@vincemaquilang7848 4 жыл бұрын
where is the data.json?
@satansdeer1
@satansdeer1 4 жыл бұрын
Vince Maquilang github.com/jcquinlan/dnd-spells/blob/master/spells.json here you go
@ucefkh
@ucefkh 5 жыл бұрын
nice thanks davai
@jmalbite804
@jmalbite804 3 жыл бұрын
Hi, what theme are you using for your vs code?
@IsmaelNascimentoAsh
@IsmaelNascimentoAsh 4 жыл бұрын
Very good content!
@huzaifaalam513
@huzaifaalam513 3 жыл бұрын
Where is uploadData.js ??????????????????
@exo.master
@exo.master 4 жыл бұрын
2:45 if you didn't care about these errors, I won't also :-)
@nemirovandrei
@nemirovandrei 4 жыл бұрын
Liked.then(saved)
@vidumini23
@vidumini23 4 жыл бұрын
Woow.. Thank you.
@Llytkm
@Llytkm 3 жыл бұрын
Here I'm at 03:45 stuck with finding the service account key. ☻☻☺
@bakirkozhegulov3331
@bakirkozhegulov3331 3 жыл бұрын
good!
@osmon-11
@osmon-11 4 жыл бұрын
Its great
@AioriaPoderoso
@AioriaPoderoso 4 жыл бұрын
Which kind of Dev Ed is this?
@BaBa-pf3ol
@BaBa-pf3ol 2 жыл бұрын
5:50 6:40 10:20 14:14 15:00
@elkpu-tv1636
@elkpu-tv1636 4 жыл бұрын
thanks
@joshuavaage2269
@joshuavaage2269 4 жыл бұрын
3:12 firestore-import-export snippet: gist.github.com/whaleen/7c45d337bd7940b9b858df998f2ccdc8
@ThreeCrowns
@ThreeCrowns 3 жыл бұрын
Thanks
@alisiraj2100
@alisiraj2100 4 жыл бұрын
Thanx
@emrc5085
@emrc5085 4 жыл бұрын
Узнаю акцент из тысячи)
@mauriciosotoa8130
@mauriciosotoa8130 4 жыл бұрын
thanks man¡¡¡
@ibrahimabdali5477
@ibrahimabdali5477 4 жыл бұрын
you are awsome :)
@a3oao
@a3oao 5 жыл бұрын
Can you please reply to my question on your last video (Firebase React Authentication Tutorial For Beginners - Private Route With Hooks) kzbin.info/www/bejne/q5_VZaZpn8lsp6M My question was "I'm kind of new to react-router, I was successfully able to add authentication and create private routes the way you did, but when but it doesn't allow me to implement transition between routes like in this example here reactcommunity.org/react-transition-group/with-react-router/ " I also wasn't able to implement the new recommended way for react router v5 which goes like this:
@satansdeer1
@satansdeer1 5 жыл бұрын
Hey Ahmed, I could take a look at the problem if you send me your repo
@vanikvardanyan9067
@vanikvardanyan9067 4 жыл бұрын
сделай тоже самое только на русском плиииизззз
@satansdeer1
@satansdeer1 4 жыл бұрын
привет, а что именно ты упустил в английской версии? К видео приложен пример кода. Возможно нужны какие-то пояснения к нему?
@David-td8dq
@David-td8dq 3 жыл бұрын
this is such a bad beginner video, alot isnt explained properly and it just feels like you have an appointment in 10 minutes.
React Firebase CRUD Tutorial - Subscribe To Firestore Changes
5:42
Firebase - Back to the Basics
25:23
Fireship
Рет қаралды 600 М.
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН
Protected Routes in React using React Router
15:40
freeCodeCamp.org
Рет қаралды 345 М.
Uploading Images to Firebase Storage in ReactJS
23:37
Hong Ly Tech
Рет қаралды 70 М.
Learn the MERN Stack - Full Tutorial (MongoDB, Express, React, Node.js)
1:47:02
freeCodeCamp.org
Рет қаралды 1,6 МЛН
10 React Hooks Explained // Plus Build your own from Scratch
13:15
Fireship
Рет қаралды 1,4 МЛН
I built a chat app in 7 minutes with React & Firebase
8:53
Fireship
Рет қаралды 1,4 МЛН
React Authentication Crash Course With Firebase And Routing
56:00
Web Dev Simplified
Рет қаралды 660 М.
How To Focus On The Right Problems
16:57
Y Combinator
Рет қаралды 28 М.
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН