Skip to content

fluttermtl/instreal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

a7fcddb · Jan 18, 2024

History

14 Commits
Jan 18, 2024
Jan 18, 2024
Jan 18, 2024
Jun 27, 2023
May 29, 2023
Jan 16, 2024
Jun 27, 2023
Jan 18, 2024
Jan 16, 2024
Jun 27, 2023
May 29, 2023
May 29, 2023
Jun 1, 2023
Jun 27, 2023
May 29, 2023
Jun 27, 2023
Jun 27, 2023
Jun 27, 2023
Jan 16, 2024
Jan 16, 2024
Jun 1, 2023
Jan 16, 2024
Jan 16, 2024
Jun 13, 2023

Repository files navigation

instreal

A new Flutter project.

Getting Started

How to start the Firebase emulator

The application requires the Firebase to run. The debug build connects to the local emulator by default while the production build connects to the production Firebase.

  1. Install the Firebase CLI https://firebase.google.com/docs/cli#setup_update_cli

  2. Start emulator

    firebase emulators:start

To disable the emulator in the dev environment, disable the line of codes in lib/main.dart or build in production mode

  if (kDebugMode) {
    try {
      FirebaseFirestore.instance.useFirestoreEmulator('localhost', 8080);
    } catch (e) {
      // ignore: avoid_print
      print(e);
    }
  }

How to initialize Firebase

Reference: https://firebase.google.com/docs/flutter/setup?platform=web

  1. Create a Firebase project from https://firebase.google.com/

  2. Install Firebase CLI https://firebase.google.com/docs/cli#setup_update_cli

  3. Login to firebase

    firebase login
  4. Install FlutterFire

    dart pub global activate flutterfire_cli
  5. Configure it using this command in the Project

    flutterfire configure