Skip to content

Commit

Permalink
Moves to Google Cloud Functions for Firebase
Browse files Browse the repository at this point in the history
  • Loading branch information
abeisgoat committed Mar 14, 2017
1 parent b11d296 commit a87ec7e
Show file tree
Hide file tree
Showing 5 changed files with 88 additions and 302 deletions.
1 change: 1 addition & 0 deletions .firebaserc
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions firebase.json
@@ -0,0 +1 @@
{}
6 changes: 6 additions & 0 deletions functions/index.js
@@ -0,0 +1,6 @@
var functions = require('firebase-functions');

exports.hourly_job =
functions.pubsub.topic('hourly-tick').onPublish((event) => {
console.log("This job is ran every hour!")
});
9 changes: 9 additions & 0 deletions functions/package.json
@@ -0,0 +1,9 @@
{
"name": "functions",
"description": "Cloud Functions for Firebase",
"dependencies": {
"firebase-admin": "^4.1.2",
"firebase-functions": "^0.5"
},
"private": true
}

0 comments on commit a87ec7e

Please sign in to comment.