ZIJ / tt-haribo-serverless

Backend / web setup for Tictrac Hackathon 2018

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Team Haribo back-end / web setup

Components:

  • Cloud Functions for handling push notifications
  • Dummy web app that mimics Timeline

Tech used

  • Google Cloud Functions (serverless!)
  • Firebase Real-time DB
  • Firebase FCM API
  • Vue.js for the dummy web app

Cloud functions

  • sendVoteNotification - listens to write events in firebase and sends push notifications to target users to show the quiz
  • HelloWorld - just a hello world :)

Dummy web app

Just reads the timeline of articles from Firebase :)

Dev prerequisites:

  • node.js 8+

Dev setup:

git clone <...>
npm install
./node_modules/firebase-tools/bin/firebase login

Deploy everything to firebase:

./node_modules/firebase-tools/bin/firebase deploy 

Deploy functions only:

./node_modules/firebase-tools/bin/firebase deploy --only functions

About

Backend / web setup for Tictrac Hackathon 2018


Languages

Language:HTML 49.9%Language:JavaScript 48.9%Language:CSS 1.2%