9.2: Firebase: Saving Data - Programming with Text

Поделиться
HTML-код
  • Опубликовано: 29 ноя 2024

Комментарии • 165

  • @TheTRUTH00101
    @TheTRUTH00101 3 года назад +10

    Few things has changed:
    1. Add
    {
    databaseURL: "databasename.region.firebaseapp.app"(your database url in realtime database section),
    }
    in the config object.
    2. Add the
    (by going to the commented out libraries url and selecting CDN then firebase-database)
    script element.
    This is as of june 2021.
    I did this after all the things in video time - 7:14

    • @latostadorano
      @latostadorano Год назад

      Thanks for the update!
      I'm stucked in the beginning, i don't know if there are more updates, but i cant use the import function on the js file :/
      I've already installed webpack, and the import statement is in setup(), but i get this error: Cannot use import statement outside a module

  • @renevank
    @renevank 8 лет назад +78

    Hey man i found your channel yesterday and im addicted already! I never knew programming and coding could be so much fun! Love your enthousiasm. Keep up the good work!

  • @iortizvictory
    @iortizvictory 7 лет назад +20

    This tutorial should be listed on the Firebase website! Awesome video! So glad I found your channel!

  • @fuzzybuddy4457
    @fuzzybuddy4457 6 лет назад +2

    dude I have been relentlessly searching on the web about saving data on firebase and you just made it more simple. Great Job!!!!

  • @karlranile4601
    @karlranile4601 10 месяцев назад

    My god, how did I not discover you sooner!!! This type of teaching is the best!

  • @oxiarr2897
    @oxiarr2897 6 лет назад +2

    these are hands down the best videos on firebase. even better than the firebase's channel videos. thanks a lot, and your personality is amazing

  • @DineshPatil-gn4cz
    @DineshPatil-gn4cz 6 лет назад

    was stuck in a problem with firebase data push. i was triyng set({ }) method, but your method just worked for me. saved my life.

  • @Fubbel42
    @Fubbel42 3 года назад

    This helped me a lot with a survey I'm working on for my thesis. The Firebase interface changed a bit but I could figure it out following this tutorial, thank you so much!

  • @lydialind5115
    @lydialind5115 5 лет назад

    Thanks to your video I managed to set up Firebase to my own project. Thanks a lot!

  • @reneeliu6676
    @reneeliu6676 5 лет назад +1

    Please don't stop this healthy obsession! Thank you.

  • @rahulmysore23
    @rahulmysore23 4 года назад

    I love this guy for his personality.

  • @mahditahsildari416
    @mahditahsildari416 6 лет назад

    Dude, I like the crazy way of your demonstration. You are crazy and funny, and crazy programmers like me will love your videos. Nice work. It is obvious you are enjoying what you do and isn't that what our job should be? Good luck buddy.

  • @Troy-ol5fk
    @Troy-ol5fk 2 года назад

    createInput() should allow the user to pass in a third param as placeholder text, this will improve UX

  • @jousireischig
    @jousireischig 7 лет назад +2

    Dude I love you :D your reaction "Ah, uh" to the project having loaded was priceless. Like a kitten scared by a clap.

  • @vedanttiwari22
    @vedanttiwari22 Год назад +2

    Thanks! This really helped me build my app

  • @kumaragurut2183
    @kumaragurut2183 4 года назад

    youre an energetic teacher bruh! the best firebase tut ive seen

  • @arnoldmukisa
    @arnoldmukisa 7 лет назад +1

    You don’t need to reinitialize firebase(config) every-time you reference the database. Thank you so much for what you do though

  • @berengo123
    @berengo123 8 лет назад

    nice content. love that simple explanation with fancy board behind you

  • @miguelrodriguez1479
    @miguelrodriguez1479 2 года назад

    I love your Content, and the example is exactly what I am doing I just want to have a global leaderboard and compare the user score!

  • @lamnguyenhuuphuc2203
    @lamnguyenhuuphuc2203 3 года назад

    Just wanna say thanks for such straightforward funny tutorial, it has saved my life from depressing due to confusion while learning those ;-;

  • @techtrends1797
    @techtrends1797 6 лет назад

    Such a good video for beginners to develop website with Firebase

  • @prakashchaudhary839
    @prakashchaudhary839 7 лет назад

    Finally after 18 days hurdles I got something
    Thanks brother

  • @yashrajbasan4097
    @yashrajbasan4097 7 лет назад

    i want you as teacher in my college.keep it up

  • @likhithsagar6847
    @likhithsagar6847 5 лет назад

    hello sir...
    I learnt a lot from you..😊😊
    Im very thankful to you...u make things easy to understand n the way you teach is awesome...
    sir Please make more videos on firebase(current one, with firestore etc) cuz Im new to this and I want to learn them to implement in whatever silly stuff im doin..and I know no one can teach things better than you..😊😊😊💐
    please sir

  • @fakrullahmahat5230
    @fakrullahmahat5230 7 лет назад

    Thanks man you help me a lot in my final year project, p/s:You are like pewds in educated way

  • @philipbecker3332
    @philipbecker3332 8 лет назад

    This was so helpful! I'm in the process of designing my first app and this is perfect for data storage and management. 🙂

  • @bilguunnyamaa1184
    @bilguunnyamaa1184 7 лет назад

    Thanks maan. I was laughin and learning while watching your video. You should be a very nice teacher.

  • @qureshiowais6951
    @qureshiowais6951 4 года назад

    please make videos with more details on this subject

  • @robbertxyz1432
    @robbertxyz1432 7 лет назад +1

    So how about the part with the secure authenticating to Firebase? I would like people to be able to send data to the database, and retrieve it. But I won't like to have the API key and such in the code, as that seems way to vulnerable :)

  • @learningacademixca8143
    @learningacademixca8143 3 года назад +1

    I don't know if I maybe missed it in the tutorial, but my code needed both these to work recently (not just the first line), things changed since.
    it did not work without the firebase-database.js line, kept getting a firebase.database() not a function error message, but except for that, all worked well still as instructed in the tutorial.

    • @klarname9404
      @klarname9404 3 года назад

      thanks!!

    • @rithsokunserey553
      @rithsokunserey553 3 года назад

      Hmm, I added both but still got the firebase.database(), not a function error. Any ideas?

  • @dho1115
    @dho1115 3 года назад

    Hello... First of all, thank you for the awesome video. I do have one question that may sound crazy, but let's say you (accidentally, of course) put that "var data = { name: "DTS", score: 43 }" inside of an infinite loop (let's say a "while" loop). Would that end up "crashing" your database or will Firebase end up charging you because you accidentally exceeded the limit for the free database?

  • @parwindersingh3897
    @parwindersingh3897 3 года назад +2

    var database = firebase.database(); // this line shows me error (formfb.html:36 Uncaught TypeError: firebase.database is not a function)
    @The Coding Train

    • @JavaScripting64
      @JavaScripting64 3 года назад

      ruclips.net/video/YfvlDzS-2ic/видео.html

  • @-no-handle
    @-no-handle 7 лет назад

    I'll definitely watch if you ever come up with Android or Android + firebase tutorials. Any plans DTB??

  • @tttv687
    @tttv687 8 лет назад

    It would be awesome to watch you create your OWN programming language. I bet you can do it!

    • @fakechannel7st
      @fakechannel7st 8 лет назад

      Seems a little fartfetched

    • @tttv687
      @tttv687 8 лет назад

      noob destroyer yeah I know, but maybe a simpler one like basic. You make them with other languages, not just ones and zeros.

  • @oshotz
    @oshotz 6 лет назад

    Thank you!
    Can't wait to learn the rest of Firebase!

  • @ariseyhun2085
    @ariseyhun2085 8 лет назад

    Hello Daniel, where can I find a link to where you live stream?

  • @abdelkarimaoudacht8158
    @abdelkarimaoudacht8158 3 года назад

    Hey, thank you for this great video, i have a question what if initialization data is incorrect, how to catch this error?

  • @joanabordadagua375
    @joanabordadagua375 3 года назад

    Thank you very much for your work! It helped me a lot on my thesis project! Thank you! :D

  • @ARIJITANANDBCE
    @ARIJITANANDBCE 6 лет назад +2

    the way you speak is awesome !!

  • @M4Lets
    @M4Lets 4 года назад

    thanks bro! best lesson in youtube!!! absolutly best! я так страдал! убил кучу времи а тут все так просто!

  • @infinityprogrammation1705
    @infinityprogrammation1705 7 лет назад

    Can't believe how this video is helpfull and the previous one too :o
    Thank you verry much .. keep working you have talent in coding and teaching
    i wasn't planning to watch the video and "oppssss" i just watched them without feeling bored at all :D
    thank you ..

  • @RNeilen216
    @RNeilen216 2 года назад +1

    I think this video needs an update. Firstly, the console of Firebase is quite different. Secondly, the webcode that I need to copy is different from your video. Most importantly, you don''t load the database under your index.html file. Instead, Firebase gets loaded by importing it, but I came accross an error when importing Firebase. It said something like.... Cannot use import statement outside a module. ????

  • @dzhellenicpoetry
    @dzhellenicpoetry 8 лет назад

    Thank you very much Dan! Very very useful video

  • @enermacabechacabuhan7189
    @enermacabechacabuhan7189 5 лет назад

    Sir I would suggest that ur tutorial would be very nice if u somehow make slow whenver u delete some text. It makes us frustrate specially when we think we exactly copy what u did, but it does not function at the end. Due to some I do not know if u intensionally do that. I notice in the crucial part ur make quick select with a sudden delete

  • @marcosorzari
    @marcosorzari 8 месяцев назад

    That way only works for p5js up to firebase version 8.10.1, it looks like there's something else needed to integrate the latest firebase CDN versions to p5js, which I wasn't yet able to figure out what. Any help will be welcome!

  • @nebilgokdemir4527
    @nebilgokdemir4527 7 лет назад

    You are best teacher thanks for great tutorial

  • @treasureislandofworld
    @treasureislandofworld 5 лет назад

    You Are A G R E A T AMAZING TEACHER & JUST EARNED A NEW STUDENT !
    HOLA

  • @NotKoiy
    @NotKoiy 8 лет назад

    Hey Daniel, I saw you teach ITP, does ITP have a coding course?

  • @SycoonGaming
    @SycoonGaming 8 лет назад

    Just found your channel, love your vids!!!

  • @graceindia3122
    @graceindia3122 5 лет назад

    Thanks Bro.Really very helpful to implement my project.

  • @hachij_
    @hachij_ 7 лет назад

    watching you video always make me smile :D

  • @olumisspidergirl3141
    @olumisspidergirl3141 5 лет назад

    hello and good day sir. love your tutorial so much thank you..sir can i ask question. what if i want my system keep add another data in database using similar ID until user click stop button... thank you..

  • @codeaxen
    @codeaxen 6 лет назад +1

    how to do i add comments on users posts ?? using Firebase

  • @darkman237
    @darkman237 6 лет назад

    What if you want to do a more complicated app? Can you do a tutorial that shows how to save to a more complex json file? Thanks!

  • @tshichan
    @tshichan 6 лет назад

    Dan ....!! you are my hero >___

  • @ghadachtioui8875
    @ghadachtioui8875 6 лет назад

    I really love what you're doing, i just thank you for all that. Keep making videos.

  • @tiannimyers2978
    @tiannimyers2978 6 лет назад

    Do you have to run firebase on your local host? If so how do you set that up.

  • @soonkpaik2037
    @soonkpaik2037 4 года назад +9

    important Suggestion - If I just copy the code you are presentig, I run into an error saying 'firebase.database' is not a function. To solve this, I needed to remove '-app' in my script src link. like, ""

    • @luismartinez4883
      @luismartinez4883 4 года назад +1

      Super like for you

    • @sohoj-arp
      @sohoj-arp 4 года назад

      Thank you man :) . I was also having the same problem . Now it is working fine

    • @vrplays
      @vrplays 4 года назад

      Thank you! This has helped me a lot!

  • @qureshiowais6951
    @qureshiowais6951 4 года назад

    make a playlist on the security of firestore database, please!!!

  • @maxandchloe4125
    @maxandchloe4125 7 лет назад

    Hi Dan! I love your videos, they are so helpful.
    I have an issue with this particular exercise, I get a reference error: firebase is not defined, although I linked the firebase library in my index.html. Any ideas?? Thank you so much for your help !

  • @CabralClements
    @CabralClements 8 лет назад

    Can you set fire base to delete data based on a certain date?

  • @misterhtmlcss
    @misterhtmlcss 7 лет назад +21

    I wish you didn't use p5js. Seems like it makes things so easy, but totally abstracts away from vanilla JS. It's my only issue with your courses, because aside from that I learn lots from them, but I just struggle to apply things learned directly, always I'm applying them as best I can indirectly since I need to learn what you are teaching without your special functions, commands, etc.
    Just to be crystal clear though, you do a great job and your videos are very engaging. It's just that since you are one of my absolute favourites, it would be nice if your videos stuck to vanilla for the broadest appeal.

    • @joshuadelorimier1619
      @joshuadelorimier1619 6 лет назад +3

      He has been big part of p5 and processing that's why he teaches it....it's his framework

    • @gamershadow3001
      @gamershadow3001 6 лет назад

      I like the fact that he uses it since its a good library and its not hard to twist it to whatever you want in js and considering you watch his videos it must mean you must have some interest in p5

  • @alexon2010
    @alexon2010 8 лет назад

    É uma pena que estas explicações não são em Português! Muito Show Parabéns!!!!

    • @Fiskgjusen
      @Fiskgjusen 8 лет назад

      Alexon da Silva Moreira actually no, it's not.

    • @luisfonseca2086
      @luisfonseca2086 8 лет назад

      Alexon da Silva Moreira Se se quiser aprender algo tipo programação só se aproveita o conteudo gringo... A maioria dos cursos são traduções de sites ou foruns gringos.

  • @youssh4975
    @youssh4975 3 года назад

    in android, what could be the cause for onDataChange not firign ever?

  • @AdrianWitzil
    @AdrianWitzil 6 лет назад

    Can someone help me? When I use firebase on my own form, it sends the data the first time and then when I try to send it again it says something about ['DEFAULT'] already exist.

  • @angladephil
    @angladephil 6 лет назад

    Google is , at least "wealthy" ! So it's a DB where u can store/retrieve whatever u want, whoever u are.. for FREE ? U know , I started with COBOL74 (i'm an old programmer !) and it's 4 me to realize that I can handle a remote DB as if it was mine... anyway, why not ? Thank u very much for your videos ! It's a great job, at least. I learned a lot from you. (Thx again, from France, apology 4 poor English)

  • @nidhipatel3196
    @nidhipatel3196 7 лет назад

    How can i save user's first name and last name under userid as parent node?

  • @eivindludviksen6478
    @eivindludviksen6478 8 лет назад

    Hey, kinda off topic, but could you maybe make Conway's Game of Life for a coding challenge? Maybe have the cells change color as they grow older, so it will be like an evolving rainbow-thing! :D

  • @tripledo8526
    @tripledo8526 7 лет назад

    hello, nice way of putting the tutorial across i love the way do it, thank you ;-)

  • @stephenschuster3555
    @stephenschuster3555 2 года назад

    1:06 "But I don't care about that" COPIUM

  • @amiturfnd
    @amiturfnd 6 лет назад

    Thanks, helped me a lot.

  • @phatakom
    @phatakom 4 года назад

    I'm having an error saying firebase is not defined. What should I do?

    • @ryansainsbury2038
      @ryansainsbury2038 4 года назад

      Found a solution to replace the tag in the html with

  • @lucaguitarplayer
    @lucaguitarplayer 6 лет назад

    you saved my project. Thank you

  • @FlorentinFoerschler
    @FlorentinFoerschler 7 лет назад

    I tried to put a for loop with an array of "Input values" in "var data" like below but it dosen't worked is there a more convenient solution than to hardcode all the values?
    function submitData() {
    var data = {
    linedrawingNumber: numberLinedrawing,
    for (i = 1; i

    • @goodev
      @goodev 7 лет назад

      These next two links will give you some ideas of how you could manage arrays:
      firebase.googleblog.com/2014/04/best-practices-arrays-in-firebase.html stackoverflow.com/questions/27124406/proper-way-to-store-values-array-like-in-firebase
      C Mos

    • @FlorentinFoerschler
      @FlorentinFoerschler 7 лет назад

      oh, thanks a lot! (I just recognized your comment)

  • @okashaassad6335
    @okashaassad6335 7 лет назад

    How to set a custom id for each initials and scores?

  • @kartikagrawal7555
    @kartikagrawal7555 7 лет назад

    Hello, Nice video,,,
    I want to connect and store data in firebase through node js app, without any server... Ie simple js file in node project, with require("firebase").. I have tried it.. It's not working.. Could you help me in this.... ?

  • @gormburger
    @gormburger 7 лет назад

    If my prof was as interested and passionate about code as you I probably would've stayed in college. At least I'm not in debt though...

  • @ayasato940
    @ayasato940 6 лет назад

    How do you apply this code on android studio?

  • @andrewkreisher689
    @andrewkreisher689 4 года назад

    wow found this video for exactly that purpose, saving high scores lol thanks

  • @brooklynndandelion5831
    @brooklynndandelion5831 7 лет назад

    is it possible to use Firebase on Rails? or is it just on NodeJS?

  • @osmanmusse6223
    @osmanmusse6223 5 лет назад

    Cool video Mate

  • @viditkhanna3721
    @viditkhanna3721 6 лет назад

    Great! But Whenever i click the button to save my app gets killed why is that? P.s=I am running the app on phone instead of emulator, please help!

  • @mehediabdullah9852
    @mehediabdullah9852 5 лет назад

    Need more video about database...plz help

  • @nickyteddy64
    @nickyteddy64 8 лет назад +1

    +Daniel Shiffman Are you the guy from helloprocessing.org? the website link might be wring

  • @eternaleclipse4943
    @eternaleclipse4943 8 лет назад

    Is there a channel like this one for Python codes?
    great videos, btw

    • @Vedvart1
      @Vedvart1 7 лет назад +1

      Try Siraj Raval. He's a slightly different style, and focuses more on machine learning, but he's pretty good at teaching what he does, and I know him and Dan are "fans" of each other so to speak.

  • @angladephil
    @angladephil 4 года назад

    Does that mean that I can host my website in Firebase for free ?

  • @RNeilen216
    @RNeilen216 2 года назад

    I want to also add, after doing some research, I found one document showing that you must install npm onto your computer. Why? There is nothing in this video that discusses about installing NPM. Why can't I just link Firebase, just like in the video? This really puts me in a pickle because I am using an Android tablet, so I can't install NPM. This does not make any sense.

  • @joaocesardelima4318
    @joaocesardelima4318 6 лет назад

    Haha! Very good! Please keep it up!

  • @conorscott8462
    @conorscott8462 6 лет назад

    Best tutorial ever. :)

  • @EvieMarieSingerGirl
    @EvieMarieSingerGirl 7 лет назад

    Thank you so much for your great work! You answered many questions I had been searching for for hours. Already a loyal fan and will be attending all of your classes. My problem: I am using firebase-broadcast to push the data of an avatar position and rotation. Works great and users can move, seeing each other's movement. Can you help with retrieving key data for the current user only? So user 123abc is connected, their key x = ?. getCurrentUser(x) Thanks in advance!

  • @jervx829
    @jervx829 5 лет назад

    Can i use firebase in JavaFX? how?

  • @ShaXCwalk
    @ShaXCwalk 8 лет назад

    Mooooar. I'm too lazy for archive! XD

  • @mdovi-kc8yv
    @mdovi-kc8yv 4 года назад

    Hey, I am Ovi. The way you code I love it. I facing a problem. I don't want a string key for my JSON object. I want numeric key like array index(E.g 0,1,3,4 so on). I think you or someone will help me.
    Advance Thanks. Good job bro. keep it up.

  • @karmbeerverma684
    @karmbeerverma684 5 лет назад

    Thank you

  • @nobelcreature6201
    @nobelcreature6201 2 года назад

    This man reminds me of Kramer's gf in Fire episode of Seinfeld, who was overly expressive and emotional for even the most little things that happen to a person.

  • @gamersgaming7939
    @gamersgaming7939 2 года назад

    How to retrieve those data?

  • @cirogolden55
    @cirogolden55 6 лет назад

    where is the github file for this video i can't find it or i'm blind :(

    • @TheCodingTrain
      @TheCodingTrain  6 лет назад

      It's not easy to find, I'm trying to come up with a better solution. github.com/CodingTrain/website/tree/master/Courses/A2Z/session09

  • @BUCKTHEWORD14
    @BUCKTHEWORD14 7 лет назад

    You're the computer nerd version of Drake!

  • @matiasnicolasnr
    @matiasnicolasnr 6 лет назад

    Hey, thakns u. Where is the code of this and next course?

  • @devrxt10
    @devrxt10 5 лет назад

    love you...................you are awesome!