loading...

A cloud function to implement a counter

akshay090 profile image Akshay090 ・1 min read

Building formiQR (4 Part Series)

1) Sending personalized email with dynamic QR from cloud function 2) Android app to scan QR and update data in firebase and display it 3) A cloud function to implement a counter 4) How to build formiQR - leverage google form with help of firebase cloud function to be a complete event management platform

To add the counter we need to append the following code in the index.js, which we created in Part-2 post, please refer it before proceeding.

Code to implement the counter

We would be creating the atEvent node in the next blog, where it would be generated when we scan the QR with the android app.

To understand the path and the code in above gist, have a look at the Realtime database.

Understanding how to get this done took an effort, so if you don't get it they feel free to ask me in comments. This code is just of few lines, but it did it job perfectly to give me a bad time 😰

No lets us move to the next and the last part of this series here.

Building formiQR (4 Part Series)

1) Sending personalized email with dynamic QR from cloud function 2) Android app to scan QR and update data in firebase and display it 3) A cloud function to implement a counter 4) How to build formiQR - leverage google form with help of firebase cloud function to be a complete event management platform

Posted on by:

Discussion

markdown guide