https://github.com/darkfanxing/connect-google-spreadsheet-to-firebase
A note about connect Google Spreadsheet to Firebase
https://github.com/darkfanxing/connect-google-spreadsheet-to-firebase
firebase firebase-realtime-database firebase-spreadsheet
Last synced: 3 days ago
JSON representation
A note about connect Google Spreadsheet to Firebase
- Host: GitHub
- URL: https://github.com/darkfanxing/connect-google-spreadsheet-to-firebase
- Owner: darkfanxing
- License: mit
- Created: 2019-12-11T06:09:43.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-23T08:16:19.000Z (about 5 years ago)
- Last Synced: 2025-03-21T19:48:52.839Z (7 months ago)
- Topics: firebase, firebase-realtime-database, firebase-spreadsheet
- Language: JavaScript
- Homepage:
- Size: 229 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Firebase + Spreadsheet
> reference:https://medium.com/firebase-developers/sheets-to-firebase-33132e31935b
upload data of Google Spreadsheet to Firebase Realtime database
1. setup Firebase project
2. setup Realtime Database on firebase, get project's URL
3. change rule and deploy on the following page:

4. check the data type of Google Spreadsheet is as following image:

5. open script editor

6. change the filename: `程式碼.gs` to [code.gs](https://github.com/darkfanxing/connect-spreadsheet-to-firebase/blob/master/code.gs) and change two parameters:

- spreadsheetID:
- spreadsheetID is here: [https://docs.google.com/spreadsheets/d/{spreadsheetID}](https://docs.google.com/spreadsheets/d/1nbot7akhbB6exTWWSkzx3ogGEHJM0l-YLWQD2o2iH5c/edit?pli=1#gid=63193665)
- firebaseUrl:
- fill the Firebase project's URL on step 27. open View > Show file list on script editor

8. you can find the `appsscript.json` file on the left sidebar now,copy this [appsscript.json](https://github.com/darkfanxing/connect-spreadsheet-to-firebase/blob/master/appsscript.json) and paste on your `appsscript.json` file
9. Open Execute > execute function > initialize on script editor
now, you can upload some data to Firebase!Finally,if you don't want to the data exposure to a dangerous enviroment, you can change it as the following parameters on rule page

the format of data on Firebase after uploaded
