Firebase Setup (Ionic 4 Version)
Use Firebase authentication, upload, storage, CRUD functionalities
Last updated
Was this helpful?
Use Firebase authentication, upload, storage, CRUD functionalities
Last updated
Was this helpful?
This section is for the Ionic 4 version of this platform, where Firebase Functions were used to make the apps talk to each other. Ionic 5 version does not use Firebase Functions.
Learn more about Firebase Auth, Hosting and DB functionalities in our detailed tutorial here
This starter provides you with Login, Signup and Reset Password functionality using Firebase Authentication. Along with this, there is a booking functionality connecting all 3 apps together, that is explained in other sections.
You can test the authentication in the already provided app code.
When you want to attach the authentication process to your own Firebase project, simply get the config
parameters from Firebase console.
Once you have the config
parameters, paste them in the environment
files in the starter code. There are two environment files, one for dev
and one for prod
app.
This configuration can be imported in app.module.ts
and main.ts
by importing the environment
Make sure to have the config
in the environment.prod.ts
when you create a production build.
You can create several different types of Login with Firebase. Read more details about each of them in our tutorials
You can open your app.module.ts
and import everything we'll be using, this is the only time you'll see this file
AngularFireModule
and AngularFireDatabaseModle
are both responsible for crud operation in Firebase
Code sample for read data flow from Firebase
Code sample for Write data flow from Firebase
Code sample for Update data flow from Firebase
Code sample for Delete data flow from Firebase