nuxt-firebase

    0.0.3 • Public • Published

    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')
    ...

    Keywords

    none

    Install

    npm i nuxt-firebase

    DownloadsWeekly Downloads

    4

    Version

    0.0.3

    License

    MIT

    Last publish

    Collaborators

    • kotamat