A guide on how to setup Firewrite.
- Create your own firebase realtime database
- Export Firebase Service Account (
Settings > Project Settings > Service Accounts > Generate New Private Key
) - Move the downloaded service account key into this directory.
- Rename the service account key file into
serviceAccountKey.json
- Change the url on line 6
- Install dependencies
- Run the script
$ mv ~/Downloads/FILE_NAME.json .
$ mv FILE_NAME.json serviceAccountKey.json
$ npm install
$ npm start
After running this script, the auth node will exist on your database. After that, let's just say you won't need this directory anymore. Just do cd ..
.
You're done here, go back to the main repo.