Firebase realtime database is a tree stricture database to insert data into the firebase database you have to connect your project with firebase. To connect your existing or new project copy the CDN from the firebase website and past under "body" tag as shown in the video.
After successfully copy cdn to your project you can insert data to firebase realtime database for insert -
1) Define a reference to your realtime database. eg,
var reference= Firebase.database().ref();
here-
reference- is a javascript variable
Fireabse.database().ref()- is the firebase library code for getting reference point.
2)To insert data
reference.set({
name:value,
name2:value2
});
here-
reference- is the javascript variable, we assign the reference point into this variable on top
set- is used to insert a value into the firebase database
name- define a name for your value, like emails, passwords, etc
value- you desired value which you want to store like emails: [email protected]
Better Example-
reference.set({
emailis:"[email protected]",
nameis:"this is my name";
});
or
reference.child("name").set("value");
both are working fine.
3) Your data will be stored successfully.
If you have any query give a comment below. Thank You for tuning my Chanel.
-------------------------------------------------------------------
Subscribe or Join Our Social Media Page
Twitter: / axomassam
Facebook: / axomassam.tk
Instagram: / axomassam
Whatsapp: https://chat.whatsapp.com/Bd2UX4aRyUw...
Teligram: https://t.me/axomassam