Firebase Realtime Database is a cloud-hosted database we will be using to store the information on when motion is detected in our system. The data is stored as a JSON and synchronized in realtime to every connected client so users can automatically see when the latest instance of motion was detected by the system. The ESP8622 chip will communicate directly with the database through a wifi connection and be coded using the Firebase Arduino API. Push notifications will also be accomplished through google cloud functions hosted on Firebase using Node.js code that sends a message every time the database updates.
https://firebase.google.com/docs?authuser=1