20.03 Connect to the Database
This commit is contained in:
parent
e2dec4f1c6
commit
b86f2bc0cf
@ -1,6 +1,7 @@
|
||||
import firebase from 'firebase/app'
|
||||
|
||||
import 'firebase/auth'
|
||||
import 'firebase/database'
|
||||
|
||||
var firebaseConfig = {
|
||||
apiKey: 'AIzaSyD1xL6X7oCD3IQC_F7vv-mYT4k1Ud0j7qs',
|
||||
@ -14,5 +15,6 @@ var firebaseConfig = {
|
||||
|
||||
const firebaseApp = firebase.initializeApp(firebaseConfig)
|
||||
const firebaseAuth = firebaseApp.auth()
|
||||
const firebaseDb = firebaseApp.database()
|
||||
|
||||
export { firebaseAuth }
|
||||
export { firebaseAuth, firebaseDb }
|
||||
|
@ -1,5 +1,6 @@
|
||||
import Vue from 'vue'
|
||||
import { uid } from 'quasar'
|
||||
import { databaseDb } from 'boot/firebase'
|
||||
|
||||
const state = {
|
||||
tasks: {
|
||||
|
Loading…
Reference in New Issue
Block a user