9.2: Firebase: Saving Data – Programming with Text

In this video, I demonstrate how to save data to the cloud using the database service Firebase. This video is part of the “Programming from A to Z” ITP class.

Next video:

Link to the “Clicking Game” development:

Course url:

Support this channel on Patreon:

Send me your questions and coding challenges!:


GitHub Repo with all the info for Programming from A to Z:

Links discussed in this video:

Source Code for the all Video Lessons:

For More Programming from A to Z videos:

For More Coding Challenges:

Help us caption & translate this video!






23 responses to “9.2: Firebase: Saving Data – Programming with Text”

  1. Art Vandelay Avatar

    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…

  2. BUCKTHEWORD14 Avatar

    You're the computer nerd version of Drake!

  3. Evie Marie Avatar

    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!

  4. Josef R Avatar

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

  5. Yashraj basan Avatar

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

  6. Arulra Marcuz Avatar

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

  7. kartik agrawal Avatar

    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…. ?

  8. Arnold Mukisa Avatar

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

  9. Florentin Foerschler Avatar

    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 <= 30; i++) {
    object: guessInput[i].value(),
    name: nameInput.value(),
    var ref = database.ref("Tests");

  10. Infinity Programmation Avatar

    Can't believe how this video is helpfull and the previous one too ๐Ÿ˜ฎ
    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 ๐Ÿ˜€
    thank you ..

  11. triple do Avatar

    hello, nice way of putting the tutorial across i love the way do it, thank you ๐Ÿ˜‰

  12. nidhi patel Avatar

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

  13. stephanie tan Avatar

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

  14. misterhtmlcss Avatar

    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.

  15. Rob M ใƒญใƒ– ใƒŸ Avatar

    Dan. This tutorial series was exactly what I needed! It has helped me tremendously.
    Are you going to go into more detail about authentication and reading and writing, like you said you would?
    I would really like to know how to make it more secure.

  16. Amador Designs Avatar

    love this. didn't know what firebase was until now. have heard bunch of people mention it.

  17. Maxand Chloe Avatar

    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 !

  18. srujan barai Avatar

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

  19. Cabral Clements Avatar

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

  20. xAlien95 Avatar

    Atom instead of SublimeText..

  21. Eivind Ludviksen Avatar

    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! ๐Ÿ˜€

  22. Acidic Avatar

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

  23. Bayu Adi Avatar

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

Leave a Reply

Your email address will not be published. Required fields are marked *