Skip to content

RomansBermans/firebase-firestore-presence

Repository files navigation

firebase-firestore-presence

A very basic Firebase user presence tracker.

Setup

  1. Install Node.js
  2. Create a project on Firebase and note down the Project ID
  3. Replace the project id in the .firebaserc with your Project ID
  4. Click Add Firebase to your web app and copy your Initialization Code
  5. Replace the initialization code in the app.es2017.js with your Initialization Code

Install

npm install

Test

npm test

Build

npm run build:app
npm run build:app:watch
npm run build:functions
npm run build:functions:watch

Start

npm start

Deploy

npm run deploy:app
npm run deploy:database
npm run deploy:functions
npm run deploy

Learn More

Firebase Realtime Database

Firebase Cloud Firestore

Firebase Cloud Functions