Creating a new data on firebase with node.js

Alper Kendirli
1 min readDec 11, 2019

--

In my previous article I explained how to connect to a firebase database. now I’ll explain how to add data to our database.

First, create a database reference to your user data. Then use set() / setValue() to save a user object to the database with the user’s username, Age, and Phone number.

Codes to add data
database after adding the data

It just that simple, no need for long and tedious steps.

this post was a little shortbut I hope it will help you.

reference: https://firebase.google.com/docs/database/admin/save-data

--

--

Alper Kendirli
Alper Kendirli

No responses yet