Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 1.74 KB

README.md

File metadata and controls

35 lines (25 loc) · 1.74 KB

Firebase Node.js Realtime Database Quickstart

The Node.js Firebase Database quickstart demonstrates how to connect to and use the Firebase Realtime Database using Node.js through a simple social blogging app. It will interoperate with the Web, iOS and Android database quickstarts.

This server will:

  • Update the star counts for all posts.
  • Send email notifications when a post has been starred.
  • Send weekly emails listing top post.

Introduction

Getting Started

  • Create your project on the Firebase Console.
  • Create a service account as described in Adding Firebase to your Server and drop the file in this directory. Or use the provided test service account.
  • Change the <PROJECT_ID> and <PATH_TO_SERVICE_ACCOUNT_CREDENTIAL_FILE> placeholders in index.js.
  • Configure your email transport in index.js.
  • Run npm install.
  • Run node index.js to run the Node.js app locally.
  • Configure and run one of the Database quickstarts for Web, iOS or Android. Then use one of these apps to publish new posts: you should receive email notifications when one of your posts have received a new star and the starred counter should be kept up to date by the app.

Support

https://firebase.google.com/support/

License

© Google, 2016. Licensed under an Apache-2 license.