How to WRITE, READ, UPDATE and DELETE data with Firebase database using JavaScript

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 ก.ย. 2024
  • How to WRITE, READ, UPDATE and DELETE data with Firebase database using JavaScript using JavaScript. Hey guys and gurls. I'll be showing you how to save and get data from Firebase database. Not only so. You'll be gifted with knowledge on how to update and delete data in the database. (LOL)
    It's super easy. Sit back and relax.
    Firebase: firebase.googl...
    Source Code: rhymbil.netlif...
    Patreon: / rhymbil
    Until Next Time
    RhymBil Out

ความคิดเห็น • 56

  • @davigibson3356
    @davigibson3356 หลายเดือนก่อน +1

    3 years old and still saving lives like mine right now 😅. Excellent video man, congrats

  • @reedgraff2465
    @reedgraff2465 3 ปีที่แล้ว +11

    You deserve so much more love from the YT algorithm... Thank you. Lifesaver.

    • @MelvinAdekanye
      @MelvinAdekanye  3 ปีที่แล้ว +3

      Glad it helped! You're most welcome.

  • @ayaka905
    @ayaka905 2 วันที่ผ่านมา

    u saved me dude

  • @hackingfoundation2899
    @hackingfoundation2899 3 ปีที่แล้ว +1

    Epic like always man

    • @MelvinAdekanye
      @MelvinAdekanye  3 ปีที่แล้ว

      You know it. Glad the video helped.

  • @MaxProgramming
    @MaxProgramming 3 ปีที่แล้ว +1

    Nice way to pass time at 0:50 😂

  • @user-ro4fs7nr5i
    @user-ro4fs7nr5i ปีที่แล้ว +1

    Thanks man, appreciate it!

  • @catsNcode
    @catsNcode ปีที่แล้ว +1

    you deserve a million subscribers for how simple you made this. Got it down in 9 mins that i couldn't with hours reading Google's documentation.
    For some reason the onclick kept saying it wasn't defined so i used event listener on the element as a workaround.
    document.querySelector('#submit').addEventListener('click', () => {
    let name = document.getElementById('name').value;
    let email = document.getElementById('email').value;
    let username = document.getElementById('username').value;
    firebase.database().ref('user-info/' + username).set({
    name: name,
    username: username,
    email: email
    })
    })

    • @MelvinAdekanye
      @MelvinAdekanye  ปีที่แล้ว

      Thanks! And thanks for the tip - maybe others could benefit.

  • @peschebichsu
    @peschebichsu 3 ปีที่แล้ว +1

    Great tutorial!

  • @gireen
    @gireen 3 ปีที่แล้ว +1

    thank you! you save me ㅠㅠ

  • @ryujiiin22
    @ryujiiin22 ปีที่แล้ว

    thank you! you save me sir thank you very much

  • @Alaaja_aj
    @Alaaja_aj ปีที่แล้ว

    yo dude you are the best.

    • @MelvinAdekanye
      @MelvinAdekanye  ปีที่แล้ว +1

      You're the best!! Thanks bro 🔥

  • @gamerdrexx9282
    @gamerdrexx9282 4 หลายเดือนก่อน

    Heyy melvin, I started watching your videos and they're great. I wanna ask tho, I have this website that has a form and the form uses firebase. Is there to build a page that views all those to fill the form

    • @MelvinAdekanye
      @MelvinAdekanye  3 หลายเดือนก่อน

      This sounds interesting - could you rephrase the question in a simpler way?

    • @gamerdrexx9282
      @gamerdrexx9282 3 หลายเดือนก่อน

      Alright. So I have this online store I'm building for a client and I am using firebase to build this project's database. So when a user wants to checkout a cart, their username, the ordered items as well as logistics data is sent to Firebase. So when the client wants to view orders I want to build a web page that she can go to and all the orders in the firebase node will be displayed to her

  • @gaganpreetsinghsidhu
    @gaganpreetsinghsidhu 3 ปีที่แล้ว +1

    sir, i had done exactly same coding but everytime its showing 'saved' notification, instead of update or delete & delete function isn't working it just updates that particular user for ex:'test' leaving other columns empty except 'username' column.

    • @MelvinAdekanye
      @MelvinAdekanye  3 ปีที่แล้ว +6

      No worries. The reason is....... I changed the buttons onclick event to call the other functions. But you don't see it, because I edited it out of the video.
      To put it simply, create more buttons to call the other functions. Or, change the onclick event of that one button to test it out. (Which is what I did)
      Thanks for asking. Others may have the same question. Hope this helps !

  • @rufatabbasov
    @rufatabbasov ปีที่แล้ว

    Thank you!

  • @MoviesPlaza
    @MoviesPlaza 2 ปีที่แล้ว

    sir can you make an admin panel which list all our user, we can add new user, edit user, delete, and update too...

  • @nixxxxx_01
    @nixxxxx_01 4 หลายเดือนก่อน +1

    i copied all your process but the data and alert is not reflecting

    • @thegamercm796
      @thegamercm796 3 หลายเดือนก่อน +1

      Try opening the file in live server or in any other localhost

  • @gilluisfrancisco6311
    @gilluisfrancisco6311 5 หลายเดือนก่อน

    What's the name of song in background?

  • @masterlook5
    @masterlook5 3 ปีที่แล้ว

    much appreciated! :)

    • @MelvinAdekanye
      @MelvinAdekanye  3 ปีที่แล้ว

      Any time!

    • @masterlook5
      @masterlook5 3 ปีที่แล้ว

      @@MelvinAdekanye your new website is not as good as the old ones. the source code is very small and segmented, which makes it harder to view and understand.

    • @MelvinAdekanye
      @MelvinAdekanye  3 ปีที่แล้ว

      @@masterlook5 You're my very first critic. Thanks for the feedback. I'm definitely going to work on a system to expand the "viewport".
      Thanks again. Let me know what you think of the changes I make in a couple days.

  • @olivierboulanger1118
    @olivierboulanger1118 3 ปีที่แล้ว

    Hello thx for your video. Does it work with version 9 of firebase ?

  • @jaredjeiodelapaz7774
    @jaredjeiodelapaz7774 9 หลายเดือนก่อน

    why is my sdk snippet not appearing.

  • @nadaahmed5987
    @nadaahmed5987 5 หลายเดือนก่อน

    I'm so cofused the form doesn't submit anything, I have firebase installed and everything ready, there's even no alert

    • @nixxxxx_01
      @nixxxxx_01 4 หลายเดือนก่อน

      same, have u solved the problem?

    • @MelvinAdekanye
      @MelvinAdekanye  3 หลายเดือนก่อน

      Let's chat - shoot me an email.

  • @RedWax.
    @RedWax. 2 ปีที่แล้ว

    it doesn't save the data in the database (but it saying saved) can you help me please

    • @MelvinAdekanye
      @MelvinAdekanye  2 ปีที่แล้ว

      Two questions? Is your Firebase Database rules set to true? Are here any alerts or errors in your console?

    • @RedWax.
      @RedWax. 2 ปีที่แล้ว

      @@MelvinAdekanye Sry its solved it was because my database was not in the US region 😅

  • @kobepwe2513
    @kobepwe2513 3 ปีที่แล้ว

    Can this work to signup and login form? thanks in advance

  • @jithinkumar5456
    @jithinkumar5456 3 ปีที่แล้ว

    How can u print all the data in a single alert?

    • @MelvinAdekanye
      @MelvinAdekanye  3 ปีที่แล้ว

      In the get function. You would simply alert(data). Where the data is equal to snapshot.val()

  • @honzosaurus42069-no_furry
    @honzosaurus42069-no_furry ปีที่แล้ว +1

    My only question is why is it not working in 2023

    • @MelvinAdekanye
      @MelvinAdekanye  ปีที่แล้ว

      Let's work through it together - are you getting any errors in your console?

    • @honzosaurus42069-no_furry
      @honzosaurus42069-no_furry ปีที่แล้ว

      @@MelvinAdekanyeWell I think It's just the version of firebase; this video is rly old. But I'm good thx. No need 4 help 👍

  • @envplayz
    @envplayz 3 ปีที่แล้ว

    Awesome Video Keep it up :)

    • @MelvinAdekanye
      @MelvinAdekanye  3 ปีที่แล้ว

      Thanks, will do!

    • @envplayz
      @envplayz 3 ปีที่แล้ว

      @@MelvinAdekanye wlc :D

  • @AlexanderWilhite
    @AlexanderWilhite ปีที่แล้ว

    • never trust a nerd to explain simple shit online