0.0.3 • Published 6 years ago

nuxt-firebase v0.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

Firebase

Adds firebase to your application nuxt.

Setup

  • Add @nuxtjs/firebase dependency using yarn or npm to your project
  • Add @nuxtjs/firebird module to nuxt.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')
...