The following is some demo code that is included within this blog post.
Here’s a quick structural overview of how this code is organized:
- functions
- db
- users
- onUpdate.f.js
- public
- admin
- index.html
- google-signin.png
- index.html
We won’t cover the Firebase setup process in this tutorial. The Firebase documentation is excellent though. If you’re just getting started, you should definitely check it out. From this point forward I’ll assume that you have Firebase set up with authentication, real-time database, and Cloud Functions up and running locally.