Lanka Developers Community

    Lanka Developers

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Shop

    How to fetch realtime Data from firebase ?

    General Discussion
    firebase javascript front-end
    3
    3
    769
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • hashan
      hashan Web Development last edited by

      Firebase realtime database එකකින් data ගන්නෙ කොහොමද අපිට custom dashboard එහෙක පෙන්නන්න පුලුවන් විදිහට.. charts වලට එහෙම.

      1 Reply Last reply Reply Quote 2
      • dev_lak
        dev_lak last edited by

        https://firebase.google.com/docs/database/web/start

        1 Reply Last reply Reply Quote 1
        • Pasindu_7
          Pasindu_7 last edited by

          //first initialize firebase
          //to sync data when object changes
          //this code block takes a snapshot from database and 'console.log' it

          //create database reference
          const dbRef = firebase.databse.ref().child('childName');

          //taking snapshot
          dbRefObject.on('value', snap => console.log(snap.val()));

          //if you want to parse data to charts (chart.js, hightcharts.js) please refer their docs too.

          1 Reply Last reply Reply Quote 1
          • 1 / 1
          • First post
            Last post

          1
          Online

          3.7k
          Users

          1.3k
          Topics

          5.3k
          Posts

          • Privacy
          • Terms & Conditions
          • Donate

          © Copyrights and All right reserved Lanka Developers Community

          Powered by Axis Technologies (PVT) Ltd

          Made with in Sri Lanka

          | |