-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add folder to keep track of misc. scripts
- Loading branch information
Showing
7 changed files
with
1,412 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
credential.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Scripts | ||
|
||
This folder contains miscellaneous scripts that interface with the Firebase | ||
Admin SDK to perform one-off administrative functions. To run these scripts, you | ||
need to have the secret key credentials corresponding to a service account, | ||
which can be done by admin users following the | ||
[instructions here](https://firebase.google.com/docs/admin/setup). Download the | ||
secret, and save it to a file in this folder called `credential.json`. | ||
|
||
After downloading the credentials file, you can run scripts with `npm install` | ||
and `npm start`. | ||
|
||
## Structure | ||
|
||
The scripts are written in Node.js as functions and have access to the | ||
`firebase-admin` SDK. The entry point is `src/index.js`, which imports and lists | ||
all of the functions. These files might be somewhat messy, but it's better to | ||
track these tools somewhere than to not keep them at all. |
Oops, something went wrong.