2023-06-15
6103
#firebase#typescript
Ebenezer Don
31875
Jun 15, 2023 â‹… 21 min read

Building a REST API with Firebase Cloud Functions, TypeScript, and Firestore

Ebenezer Don Full-stack software engineer with a passion for building meaningful products that ease the lives of users.

Recent posts:

what are the event loop and call stack in JavaScript

What are the event loop and call stack in JavaScript?

Learn how the call stack, event loop, and various queues help JavaScript handle asynchronous operations while maintaining its single-threaded nature.

Ikeh Akinyemi
Feb 18, 2025 â‹… 6 min read
how and when to use JavaScript arrow functions

How and when to use JavaScript arrow functions

Arrow functions have a simpler syntax than standard functions, and there are some important differences in how they behave.

Joe Attardi
Feb 17, 2025 â‹… 5 min read
javascript is null or empty function

How to check for null, undefined, or empty values in JavaScript

In most languages, we only have to cater to null. But in JavaScript, we have to cater to both null and undefined. How do we do that?

Lewis Cianci
Feb 14, 2025 â‹… 4 min read
MERN Stack: Overview With Examples

What is the MERN stack? Overview with examples

Discover how the MERN stack (MongoDB, Express.js, React, Node.js) enables developers to build dynamic, performant, modern websites and apps.

Nefe Emadamerho-Atori
Feb 13, 2025 â‹… 20 min read
View all posts

8 Replies to "Building a REST API with Firebase Cloud Functions, TypeScript, and Firestore"

  1. Hello Ebenezer, i like your article, very clear and concise.

    I have a little more interest in the section “Getting entries from our Firestore database”

    In fact, i m pretty a newbe with Firestore, and i have an app developped with Flutter which store its data in Firestore.

    So now i would like to retrieve this data and send it to another app (precisely Salesforce) , but don t know really how to proceed… i guess , i m suppose to write the class also directly in firestore or ?

    Thank you in advance

  2. Thanks for this doc, it really helps with initial setup. How would you go about setting this up to test with the local emulator? Any chance you could add a section or comment that just extends your current implementation to also use the local emulators correctly for local dev?

  3. type Request = {
    body: Order,
    params: { orderId: string }
    }

    How do I create a Request type with headers?

Leave a Reply