DEV Community

Cover image for Accessing Firebase services
Aswin Barath
Aswin Barath

Posted on • Edited on • Originally published at aswinbarath.github.io

4 2

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

Top comments (0)

Image of Timescale

Timescale – the developer's data platform for modern apps, built on PostgreSQL

Timescale Cloud is PostgreSQL optimized for speed, scale, and performance. Over 3 million IoT, AI, crypto, and dev tool apps are powered by Timescale. Try it free today! No credit card required.

Try free

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay