Skip to content

Instantly share code, notes, and snippets.

View mjgartendev's full-sized avatar

Michael Garten mjgartendev

View GitHub Profile
@mjgartendev
mjgartendev / firebase-config.js
Last active May 29, 2018 03:04
Template to add firebase connection settings to vue project from https://www.smashingmagazine.com/2018/04/vuejs-firebase-firestore/
// 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 = {