NextFire main logoNextFire
Docs X
Introduction
Get Started
Clone repo
Run the app
Configuration
Firebase
Create firebase app
Authentication
Firestore
Storage
Functions
Global configuration
Public
Site config
Payments
Stripe
One time
Subscriptions
Webhooks
Usage
Project structure
Static pages
Public pages
Protected pages
Auth
Client auth
Server auth
Data fetching
Firestore client
Firestore admin
Functions
Storage
Content
Blog
Documentation
Components
Markdown
Cards
Diagrams
Filetree
Lists
Maths
Notes
Steps
Table
Tabs
Public
Deep
Deeper
Even deeper
  1. Data Fetching

Data Fetching

Introduction to data fetching in the Next.js + Firebase boilerplate, covering Firestore, Cloud Functions, and Storage.

  • Firestore Client Functions – Functions to read and write data from the client side.
  • Firestore Admin Functions – Server-side functions with elevated privileges using the Firebase Admin SDK.
  • Firebase Cloud Functions – Callable functions that allow secure server-side logic triggered from the client.
  • Storage – Uploading and retrieving files from Firebase Storage.

In the following sections, we will cover each of these areas, including function definitions, usage examples, and best practices for calling them in your application.

For more details on Firebase SDK usage and advanced patterns, we encourage you to check the official Firebase documentation.

Server authFirestore client

Content

FeedbackEdit page

© 2025 Ship IT.

Rubix Studios logo