Tools for importing data into Firebase.
In order to use this script, you need to have Node.js installed on your system.
Additionally, you require admin access to ACS UPB Mobile's Firebase project to obtain a
key. This is done by accessing "Users and Permissions" in the settings, navigating to "Service
accounts" and generating a new private key for Node.js. This key should be saved in this directory
as serviceAccount.json
and should never be shared with anyone.
Place the file you would like to import in the data/
folder in this repository, then run:
|
npm ci
node import.js
The files in the 'data/' folder which are to be imported are either exports from various websites or scraped data obtained using the scripts in the 'crawlers/' folder.