Skip to content

Instantly share code, notes, and snippets.

@artokun
Last active February 7, 2018 06:32
Show Gist options
  • Select an option

  • Save artokun/17ef8187be063ef8e7c8c7cbcf6bb34e to your computer and use it in GitHub Desktop.

Select an option

Save artokun/17ef8187be063ef8e7c8c7cbcf6bb34e to your computer and use it in GitHub Desktop.

Revisions

  1. artokun revised this gist Feb 7, 2018. 1 changed file with 11 additions and 8 deletions.
    19 changes: 11 additions & 8 deletions index.js
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,10 @@
    import Vue from 'vue'
    import App from './App'
    import router from './router'
    import firebase from 'firebase'; // import the firebase SDK
    import Vue from 'vue';
    import App from './App';
    import router from './router';

    /* Import the firebase SDK and extend with firestore */
    import firebase from 'firebase';
    require('firebase/firestore');

    /* Paste your firebase configuration below */
    const config = {
    @@ -13,18 +16,18 @@ const config = {
    messagingSenderId: '521493369838',
    };

    /* Initialise firebase with your configuration */
    /* Initialize firebase with your configuration */
    firebase.initializeApp(config);

    /* Bind firebase to your Vue instance */
    Vue.prototype.$firebase = firebase;

    Vue.config.productionTip = false
    Vue.config.productionTip = false;

    /* eslint-disable no-new */
    new Vue({
    el: '#app',
    router,
    components: { App },
    template: '<App/>'
    })
    template: '<App/>',
    });
  2. artokun created this gist Feb 7, 2018.
    30 changes: 30 additions & 0 deletions index.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,30 @@
    import Vue from 'vue'
    import App from './App'
    import router from './router'
    import firebase from 'firebase'; // import the firebase SDK

    /* Paste your firebase configuration below */
    const config = {
    apiKey: 'AIzaSyDNB0VRHot9Z3vxNBvxR9JDFIad2QbAY4Y',
    authDomain: 'system-builder-d9645.firebaseapp.com',
    databaseURL: 'https://system-builder-d9645.firebaseio.com',
    projectId: 'system-builder-d9645',
    storageBucket: 'system-builder-d9645.appspot.com',
    messagingSenderId: '521493369838',
    };

    /* Initialise firebase with your configuration */
    firebase.initializeApp(config);

    /* Bind firebase to your Vue instance */
    Vue.prototype.$firebase = firebase;

    Vue.config.productionTip = false

    /* eslint-disable no-new */
    new Vue({
    el: '#app',
    router,
    components: { App },
    template: '<App/>'
    })