Skip to content

Latest commit

 

History

History
45 lines (34 loc) · 1.04 KB

README.md

File metadata and controls

45 lines (34 loc) · 1.04 KB

Security & Rules

{
  "rules": {
    "messages": {
      ".read": true,
      ".write": true
    },
  }
}

Client

Implemented by Flask and Vue.js

  • Set up:
  1. Replace {projectName} from the code in static/main.js to yours (Check: firebase console)
  2. Open your terminal, and step by step:
$ cd firebase-client
$ export FLASK_APP=client.py
$ flask run
# open your browser

Server

Implemented by PHP with Composer

  • Set up:
  1. Replace {projectName} and {yourToken} from the code in send-to-firebase.php to yours (Check: firebase console)
  2. 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