Coder Social home page Coder Social logo

katmakhan / firebase-course Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 99 KB

Master the firebase functions like Realtime Database, Cloud Firestore, Remote Configs, Push notification, Firebase Hosting and Functions

License: MIT License

JavaScript 100.00%
firebase-cloud-functions firebase-database firebase-hosting firestorage firestore free-tier realtime-database firebase-rules-security security-cloud firebase-cloud-messaging firebase-remote-config firebase-apps firebase-push-notifications

firebase-course's Introduction

Firebase Syllabus

  • Realtime Database
    • Billed based on data transfer rather than document numbers
    • Can do simples queries
    • Good for real time data storage and retrival
    • Ideal for stock trading data and real time monitoring systems for IOT
  • Cloud Firestore (Billed based on number of documents
    • Billed based on number of documents
    • Can do complex queries
    • Good for storing relational database
    • Ideal for storing review informations, complex data models
  • Firebase Hosting
    • Completely free for medium level traffic
    • Easy setup with github actions
  • Remote Configs
    • Change configs for the mobile apps without any updates
    • Not ideal for initial settingup
    • Takes time to effect 100% of rollout
  • Cloud Functions
    • Compression of image
    • Automatic Backups
    • Automatic summation
  • Push Messages
    • To send notification to web and mobile platforms
    • With Image headers
    • With Unique notification sound
    • With click actions
  • In-App Messages
    • For in app popup for user engagement
    • Ideal for promotional or new feature updates
  • Dynamic Links
    • For using for referal links
    • Opening dedicated pages or posts from app
  • Security Rules
    • To secure the database
    • Rules to secure data using admin roles
    • Rules to minimise data extraction

Installing Firebase CLI in Windows or MAC

curl -sL https://firebase.tools | bash
  • Then initialise by firebase login and add your service account
firebase login
  • Then initialise the project by going inside the project folder and typing
firebase init

Installing Firebase-Admin in Python

pip install firebase-admin

Debugging the installation error

If there is error like when installing any other dependencies

File "C:\Users\<NAME>\Anaconda3\lib\site-packages\firebase_admin\_http_client.py", line 34, in <module>
   raise_on_status=False, backoff_factor=0.5, **_ANY_METHOD)
   TypeError: __init__() got an unexpected keyword argument 'status'

Just do the following steps

  • Go the following path
    C:\Users\<NAME>\Anaconda3\lib\site-packages\firebase_admin_http_client.py
  • Comment the following lines from firebase_admin_http_client.py:
     #from requests.packages.urllib3.util import retry
     #DEFAULT_RETRY_CONFIG = retry.Retry(
     #connect=1, read=1, status=4, status_forcelist=[500, 503],
     #raise_on_status=False, backoff_factor=0.5)
  • Also Change the init parameter as follows
def __init__(
  self, credential=None, session=None, base_url='', headers=None,
  retries=1,timeout=120):

OR Change the requests version to

2.11.1
pip uninstall requests
pip install requests

firebase-course's People

Contributors

katmakhan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.