GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - firebase/firebase-functions: Firebase SDK for Cloud Functions

BranchesTags
Open more actions menu

Latest commit

 

History

1,197 Commits
1,197 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.guides
.guides
 
 
docgen
docgen
 
 
integration_test
integration_test
 
 
lifecycle
lifecycle
 
 
logger
logger
 
 
mocha
mocha
 
 
protos
protos
 
 
scripts
scripts
 
 
spec
spec
 
 
src
src
 
 
v1
v1
 
 
v2
v2
 
 
.gitignore
.gitignore
 
 
.mocharc.yaml
.mocharc.yaml
 
 
.prettierignore
.prettierignore
 
 
.prettierrc.js
.prettierrc.js
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
eslint.config.js
eslint.config.js
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
tsconfig.dts.json
tsconfig.dts.json
 
 
tsconfig.json
tsconfig.json
 
 
tsconfig.release.json
tsconfig.release.json
 
 
tsdown.config.mts
tsdown.config.mts
 
 
tslint.json
tslint.json
 
 

Repository files navigation

Firebase SDK for Cloud Functions

The firebase-functions package provides an SDK for defining Cloud Functions for Firebase.

Cloud Functions is a hosted, private, and scalable Node.js environment where you can run JavaScript code. The Firebase SDK for Cloud Functions integrates the Firebase platform by letting you write code that responds to events and invokes functionality exposed by other Firebase features.

Learn more

Learn more about the Firebase SDK for Cloud Functions in the Firebase documentation or check out our samples.

Here are some resources to get help:

  • Start with the quickstart
  • Go through the guides
  • Read the full API reference
  • Browse some examples

If the official documentation doesn't help, try asking through our official support channels

Please avoid double posting across multiple channels!

Usage

// functions/index.js
const { onValueCreated } = require("firebase-functions/database");
const logger = require("firebase-functions/logger");
const notifyUsers = require("./notify-users");

exports.newPost = onValueCreated({ ref: "/posts/{postId}" }, (event) => {
  logger.info("Received new post with ID:", event.params.postId);
  return notifyUsers(event.data.val());
});

Contributing

To contribute a change, check out the contributing guide.

License

© Google, 2017. Licensed under The MIT License.

About

Firebase SDK for Cloud Functions

firebase.google.com/docs/functions/

Resources

Readme
MIT license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

1.1k stars

Watchers

84 watching

Forks

232 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.