DEV Community

Cover image for Accessing Firebase services
Aswin Barath
Aswin Barath

Posted on • Originally published at aswinbarath.github.io

Accessing Firebase services

Firebase API follows a straightforward approach.
By invoking these methods will get you access to each Firebase service.

Firebase API

Syntax to access Firebase Firestore

firebase.firestore()
Enter fullscreen mode Exit fullscreen mode

Syntax to access Firebase Authentication

firebase.auth()
Enter fullscreen mode Exit fullscreen mode

Syntax to access Firebase Storage

firebase.storage()
Enter fullscreen mode Exit fullscreen mode

Firebase hosting commands

Firebase Hosting uses a command-line interface instead of methods on the Firebase object. Run the following commands:

Initialize a Firebase project

firebase init 
Enter fullscreen mode Exit fullscreen mode

deploy a Firebase project

firebase deploy 
Enter fullscreen mode Exit fullscreen mode

Feel free to share if you found this useful 😃.

Discussion (0)