This repository containing Node JS Script to sync Local Mysql DB with Firebase DB.
-
Make sure to install node and npm.
-
Run
npm install
-
On your firebase console, go to your Project Settings page and navigate to Service Accounts.
-
At the bottom, click
Generate New Private Key
button. -
Move the downloaded json in this folder and rename to
firebase.json
. -
Change databaseURL: "https://xx.firebaseio.com" in index.js
-
Chnage your Local Mysql credentials to
mysql.json
.
- Run
npm start