🖥️
Full stack Typescript
  • Introduction
  • Environment setup
    • Workspace setup
    • Firebase project setup
    • Firebase authentication
    • Firestore database
    • Firebase hosting
  • Getting started with the Full Stack Typescript repository
  • Workflows
    • Development workflow
      • Component workflow
        • Application Toolbar component example
      • Feature workflow
        • User Account feature example
      • Function workflow
        • Update User Account callable function example
      • Web3 function workflow
        • Query Ethereum balance callable function example
    • Icon workflow
    • Push notification workflow
    • PWA workflow
      • Making your PWA Google Play Store ready
    • Secret Manager API workflow
  • Styleguide
    • Architecture overview
    • Naming conventions
    • Single-responsibility principle
  • Change Requests
    • Request for changes
      • Change pattern proposal template
      • New pattern proposal template
Powered by GitBook
On this page
  1. Workflows
  2. Development workflow

Function workflow

A function runs backend code in response to events triggered by Firebase features and HTTPS requests.

Functions gives developers access to a complete range of fully managed Google Cloud Platform (GCP) services including analytics, authentication and Firebase/Firestore. Cloud Functions round out the GCP offering by providing a way to extend and connect the behavior of Firebase features through the addition of server-side code.

Firebase developers can easily integrate with external services for tasks like processing payments and sending SMS messages. Also, developers can include custom logic that is either too heavyweight for clients (mobile/web/desktop), or which needs to be secured on a server.

Function location: /apps/full-stack-typescript-api/src/functions/{{feature name}}

Do create a function when needing to securely interact with Firebase/Firestore

Do create a function when needing to access GCP services

Do create a function when a process needs to easily scale in resources

Do create a function when a process is too heavy for the client to handle

Do create a function when a process includes business logic

Do create a function when integrating with 3rd party services and APIs

Do create a function when using secrets and keys

Do create a function to perform database sanitization and maintenance

GCP Functions dashboard

https://console.firebase.google.com/u/0/project/{{your project}}/functions

PreviousUser Account feature exampleNextUpdate User Account callable function example

Last updated 2 years ago