Documentation for CXUBR APPS

Flutter Installation:

To begin, ensure you have the latest version of Flutter installed, preferably version 3.X or higher. Regardless of your operating system (macOS, Windows, or Linux), follow these steps:

  1. Download the Flutter SDK and place it in your development folder.
  2. Add the Flutter bin directory to your system's PATH variable.
  3. For detailed instructions, refer to the official Flutter installation guide: Flutter Installation Guide.

Flutter Installation

Firebase Installation:

  1. Navigate to the Firebase console and sign in or create an account: Firebase Console.
  2. Create a new project in the Firebase console.

Firebase Console

  1. Follow the setup instructions provided by Firebase for your project.

Firebase Project Setup

Firebase Integration with Flutter:

Before linking your Flutter project with Firebase, ensure Firebase CLI is installed on your machine. Follow these steps:

  1. Install Firebase CLI tools and authenticate your account by following the instructions provided in the Firebase CLI Documentation.

Firebase CLI Installation



use the commands provided to install fierbase tools and login into your firebase account from your pc ,

then use the commands to inside the flutter to set up the firebase :




now we will start working firebase functions that we are going to use ,
Authentificaiton:

enable the email option:





Firestore:

enable access through out an auth:

add the necessary docs :

and make sure to add the pricing in the docs are set app baseFare , pricePerKm, pricePerMin

now we go the google cloud console to set app the goog map key :



 




then you create your app in this page , that we will add to the project later ,

we also need one last thing , which is the google cloud messagin for the notifications , which you car find in the cloud store and you need to enable :


by enabling it this key will appear in the settings of you firebase project that will halp us send notifications :

by doing all this we need to configure the last thing the flutter project which is the map and messaging key in flutter project :

here you will add both the keys that we have generated in this tutorial :


Additionnal info :
you can change the pacackage name and the icon of the project using these two packages which are implimented in the project 





Comments

Popular posts from this blog