Code Monkey home page Code Monkey logo

flutter_firebase's Introduction

The Flutter Firebase Compendium Demo Application

The Flutter Firebase Compendium

This is the companion app of the Flutter Firebase Compendium with code examples.

The Flutter Firebase Compendium is an article series published on Medium. It explains how to use Firebase services from a Flutter application.

I recommend buying my ebook. It contains a lot more details and will save you many hours of research time to develop your apps quicker.

Content

App screenshots

Firebase Authentication Firebase Cloud Firestore Firebase Cloud Functions

Firebase Storage Firebase Remote Config

How to run the code

The code uses Firebase as a backend but the Firebase configuration is not included. You have to add it yourself because there are paid features that might cause costs. Refer to this article above on how to perform the necessary steps in detail.

  1. Create a Firebase project
  2. Install Firebase CLI
  3. Install FlutterFire CLI
  4. Check out the code
  5. Execute firebase login from the app root folder and log into your created Firebase project
  6. Execute flutterfire configure from the app root folder and use your created Firebase project
  7. A file firebase_options.dart will be created in your lib folder
  8. (Cloud Functions only) Execute firebase deploy --only functions to deploy the demo functions
  9. (Storage and Cloud Firestore only) Set security rules for Storage and Firestore
  10. (App Check only) Register an attestation provider and enforce App Check
  11. (Remote Config only) Create parameters with conditions for Remote Config
  12. Run the app

Hints

  • ๐Ÿ’ก Social sign-in only works on web platform
  • ๐Ÿ’ก You need to replace the link on functions_page.dart according to your deployed function link!
  • ๐Ÿ’ก Don't forget to set the security rules for Storage and Firestore!
  • ๐Ÿ’ก To get file downloads from Firebase Storage work on the web platform, you need to set specific CORS rules!
  • ๐Ÿ’ก SafetyNet deprecated, supported until June 2024!)

Platforms

Overview of supported platforms of the used Firebase packages.

โœ” - supported โŒ - not supported

Android iOS Web MacOS Windows Linux
Authentication โœ” โœ” โœ” โœ” โŒ โŒ
Firestore โœ” โœ” โœ” โœ” โŒ โŒ
Functions โœ” โœ” โœ” โœ” โŒ โŒ
Storage โœ” โœ” โœ” โœ” โŒ โŒ
App Check โœ” โœ” โœ” โœ” โŒ โŒ
Remote Config โœ” โœ” โœ” โœ” โŒ โŒ

Support

If you like this post or my work in general, feel free to support me in any way โค

flutter_firebase's People

Contributors

xeladu 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.