Skip to content

Firebase Cloud Functions & App Engine code for the news app I developed by myself.

Notifications You must be signed in to change notification settings

kboy-silvergym/FirebaseCloudFunctions-for-NewsApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Firebase Cloud Functions and App Engines codes for News app.

App Engine's PubSub Cron is triggerd every morining and cloud functions fetch new blog artilcles and new Youtube videos.

Firebase Cloud Functions

Fetch Youtube Videos

Fetching a new Youtube video and creating list categorized by "category".

2018-08-26 20 22 56

You can fetch Youtube video's infomation without using OAuth2. All you need is just to register Google APIs.

In functions/youtube.js you can fetch the latest video on your favorite Youtube channel if you get channelId of that, and can put it into Firebase realtime database.

Fetch Articles via RSS

Fetching a new blog article and creating list orderd by newest.

2018-08-26 20 21 58

In functions/column.js you can fetch articles via RSS and put it into Firebase realtime database.

AppEngine

PubSub Cron

Triggerd every morning.

2018-08-26 20 29 48

This is perfectly referenced from this article ( https://developers-jp.googleblog.com/2017/04/how-to-schedule-cron-jobs-with-cloud.html )

You should just edit appengine/cron.yaml.