Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mbrsagor/jsfirebase

In this project basically javascript simple operation firestore cloud messaging.
https://github.com/mbrsagor/jsfirebase

firebase firebase-realtime-database javascrpt

Last synced: 1 day ago
JSON representation

In this project basically javascript simple operation firestore cloud messaging.

Awesome Lists containing this project

README

        

# Realtime Database Firebase

> In this project basically javascript simple operation firestore cloud realtime messaging.

- Below the simple example for `get` & `set` data

```javascript
// Set data
function send_data() {
database.ref('data').set({
message: 'Bozlur Rosid Sagor'
});
}

// Get data
function get_data() {
database.ref('data').once('value', function(snapshot) {
var data = snapshot.val();
console.log(data.message);
});
}

// Run
get_data();
send_data();
```