How to Read Data from Cloud Firestore in Node.js

Kavit (zenwraight)
techie
Published in
2 min readAug 6, 2020

--

What is Cloud Firestore?

Cloud Firestore is a flexible, scalable database for mobile, web, and server development from Firebase and Google Cloud Platform. Like Firebase Realtime Database, it keeps your data in sync across client apps through realtime listeners and offers offline support for mobile and web so you can build responsive apps that work regardless of network latency or Internet connectivity.

What are the things we need to get started ?

  1. Gmail account.
  2. Basic knowledge of javascript.
  3. Familiarity with Node.js and how npm works.

Ok now without wasting any more time, let’s get onto the topic.

Install required Dependencies

Create a folder with any name and run the command npm init . That will create a package.json file and few other config related files. Now, to install dependencies, run the below command inside the folder that you just created.

  • npm i @google-cloud/storage
  • npm i express

Steps to start a Firebase project

  1. Open the Firebase console.
  2. Click “CREATE NEW PROJECT”. …

--

--