deejaygeroso / countdown

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Countdown Timer

A shared countdown timer that can be simultaneously experienced by multiple users.

App Screenshot

Features

  • Clicking the Reset button resets the timer to 3:00 minutes
  • Clicking the Start/Stop button unpause and pause the timer respectively
  • The timer counts downward, updating every second until it reaches 0:00
  • Multiple users can be able to visit the site and all simultaneously see the same value
  • Closing or reloading the browser does not impact the timer's behavior. On reload, the site displays the same content as if the page was never closed.
  • Implementation of this app avoids excessive writes to persistent storage. This means that the app does not update the database every second with the current time.

Config

Important: You will need to setup a new account project on firebase and create a firestore database to proceed.
Then you will create a config.json file and save it on src/config.json.

{
  "firebase": {
    "apiKey": "",
    "authDomain": "",
    "projectId": "",
    "storageBucket": "",
    "messagingSenderId": "",
    "appId": ""
  },
  "timer": {
    "docId": ""
  }
}

About


Languages

Language:JavaScript 74.2%Language:HTML 16.2%Language:CSS 9.6%