Skip to content

Implement a good practice on firebase API with vuejs

Notifications You must be signed in to change notification settings

CaraWang/firebase-practice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Implement a good practice on firebase API with vuejs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages