nuxt-firebase
v0.0.3
Published
Adds firebase to your application nuxt.
Downloads
3
Readme
Firebase
Adds firebase to your application nuxt.
Setup
- Add
@nuxtjs/firebase
dependency using yarn or npm to your project - Add
@nuxtjs/firebird
module tonuxt.config.js
:
modules: [
{
src: '@rafamaciel/firebase',
options: {
apiKey: '<API KEY>',
authDomain: '<AUTH DOMAIN>',
databaseURL: '<DATABASE URL>',
projectId: '<PROJECT ID>',
storageBucket: '<STORAGE BUCKET>',
messagingSenderId: '<MESSAGING SENDER ID>'
}
}
]
Usage
Example: Adding an item to database
...
this.$firebase.database().ref('path/to/data').set('value')
...