{
"rules": {
"messages": {
".read": true,
".write": true
},
}
}
Implemented by
Flask
andVue.js
- Set up:
- Replace
{projectName}
from the code instatic/main.js
to yours (Check: firebase console) - Open your terminal, and step by step:
$ cd firebase-client
$ export FLASK_APP=client.py
$ flask run
# open your browser
Implemented by PHP with
Composer
- Set up:
- Replace
{projectName}
and{yourToken}
from the code insend-to-firebase.php
to yours (Check: firebase console) - Open your terminal, and step by step:
$ cd firebase-server
$ composer install
$ php send-to-firebase.php
# start to send message to firebase...
# and then the messages show up in your browser