Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated doc for setting up sample function. child-count #758

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update README.md
  • Loading branch information
Souravdey777 authored Aug 8, 2020
commit d5b40419c3ec9d2c6359b1496b26ae7eb3a95334
16 changes: 16 additions & 0 deletions child-count/README.md
Original file line number Diff line number Diff line change
@@ -30,3 +30,19 @@ As an example we'll be using the database structure shown below. It keeps tracks
user786245: true
...
```


## Trigger rules

The function triggers on changes to `/posts/{postid}/likes/{likeid}`.


## Setting up the sample

1. Create a Firebase Project using the [Firebase Console](https://console.firebase.google.com).
1. Enable the **Google** Provider in the **Auth** section.
1. Clone or download this repo and open the `child-count` directory.
1. You must have the Firebase CLI installed. If you don't have it install it with `npm install -g firebase-tools` and then configure it with `firebase login`.
1. Configure the CLI locally by using `firebase use --add` and select your project in the list.
1. Install dependencies locally by running: `cd functions; npm install; cd -`.
1. Good to go now.