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
// Copied/simplified from https://www.smashingmagazine.com/2018/04/vuejs-firebase-firestore/ | |
// by https://www.smashingmagazine.com/author/lukas-van-driel | |
// 1. npm install firebase | |
// 2. insert this snippet in your Vuex root | |
import Vue from 'vue'; | |
import firebase from 'firebase/app'; | |
import 'firebase/firestore'; | |
// Copy this from the cloud console "add to web app" settings | |
var config = { |
NewerOlder