This file contains hidden or 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
// https://stackblitz.com/edit/typescript-h68plq?file=index.ts | |
import firebase from 'firebase/app'; | |
import 'firebase/firestore'; | |
import { syncWithElements } from './sync'; | |
const app = firebase.initializeApp({ projectId: "alwaysbecaching" }); | |
const unsub = syncWithElements(app, { | |
parent: document.querySelector('.container'), |
This file contains hidden or 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
function main() { | |
var sheet = SpreadsheetApp.getActiveSheet(); | |
// This is set as the collection name | |
var sheetName = sheet.getName(); | |
var properties = getProperties(sheet); | |
var records = getData(sheet); | |
var firestore = getFirestore(); | |
exportToFirestore(firestore, sheetName, records, properties); | |
} |
OlderNewer