firebase-functions

Firebase SDK for Cloud Functions

Showing:

Popularity

Downloads/wk

411K

GitHub Stars

850

Maintenance

Last Commit

8d ago

Contributors

67

Package

Dependencies

5

License

MIT

Type Definitions

Built-In

Tree-Shakeable

No?

Categories

Reviews

Average Rating

5.0/51
Read All Reviews
chunterb

Top Feedback

2Great Documentation

Readme

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:

If the official documentation doesn't help, try asking through our official support channels: https://firebase.google.com/support/

Please avoid double posting across multiple channels!

Usage

// functions/index.js
const functions = require('firebase-functions');
const notifyUsers = require('./notify-users');

exports.newPost = functions.database
  .ref('/posts/{postId}')
  .onCreate((snapshot, context) => {
    functions.logger.info('Received new post with ID:', context.params.postId);
    return notifyUsers(snapshot.val());
  });

Contributing

To contribute a change, check out the contributing guide.

License

© Google, 2017. Licensed under The MIT License.

Rate & Review

Great Documentation2
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
Hunter BlackwellBaton Rouge, LA32 Ratings37 Reviews
4 months ago
Great Documentation

Firebase functions have been a great addition to many of my projects, especially when used with other Firebase services. This will allow you to make a completely serverless application that is reactive to whatever you may save inside of Firebase's RTD or Firestore. You can also build out a full fledged API, which I have done with Express + Node. Another plus for me, is that if you outgrow firebase, then all of your cloud functions are ultimately living inside of Google Cloud, so you can easily migrate.


0
Alessandro Donateolecce14 Ratings0 Reviews
Computer engineering
1 year ago
Great Documentation

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial