@nuxtjs/firebase
Intergrate Firebase into your Nuxt project.
Last updated 3 months ago by lupas .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @nuxtjs/firebase 
SYNC missed versions from official npm registry.

???? Nuxt Firebase

Downloads Version License

Easily integrate Firebase into your Nuxt project.

???? Read Full Documentation

v4 to v5 Upgrade Guide

‼️ BREAKING CHANGES in the last Update ‼️

???? Upgrade Guide from v4 to v5

Quick Setup

Make sure you have the newest versions of Nuxt and Firebase installed and setup in your project.

yarn add nuxt # OR npm i nuxt
yarn add firebase # OR npm i firebase

Install the module via NPM or Yarn:

yarn add @nuxtjs/firebase # OR npm i @nuxtjs/firebase

Quick Config

Add the following to your nuxt.config.js.

See all configuration options here.

modules: [
    [
      '@nuxtjs/firebase',
      {
        config: {
          apiKey: '<apiKey>',
          authDomain: '<authDomain>',
          databaseURL: '<databaseURL>',
          projectId: '<projectId>',
          storageBucket: '<storageBucket>',
          messagingSenderId: '<messagingSenderId>',
          appId: '<appId>',
          measurementId: '<measurementId>'
        },
        services: {
          auth: true // Just as example. Can be any other service.
        }
      }
    ]
  ],

Quick Usage

Now you can use all Firebase services with this.$fireAuth, this.$fireStore, this.$fireMess etc. (see list here).

Example:

try {
  await this.$fireAuth.createUserWithEmailAndPassword('foo@foo.foo', 'test')
} catch (e) {
  handleError(e)
}

Advanced Setup

There is much more options to this simple setup, check out our full documentation below:

???? Read Documentation

License

MIT - Nuxt-Community - Pascal Luther

Current Tags

  • 6.1.1                                ...           latest (3 months ago)

16 Versions

  • 6.1.1                                ...           3 months ago
  • 6.1.0                                ...           4 months ago
  • 6.0.1                                ...           5 months ago
  • 6.0.0                                ...           5 months ago
  • 5.2.0                                ...           6 months ago
  • 5.0.7                                ...           7 months ago
  • 5.0.6                                ...           7 months ago
  • 5.0.5                                ...           7 months ago
  • 5.0.3                                ...           7 months ago
  • 5.0.2                                ...           7 months ago
  • 5.0.1                                ...           7 months ago
  • 5.0.0                                ...           7 months ago
  • 4.2.2                                ...           8 months ago
  • 4.1.0                                ...           8 months ago
  • 4.0.0                                ...           8 months ago
  • 0.0.0                                ...           8 months ago
Downloads
Today 0
This Week 2
This Month 3
Last Day 0
Last Week 1
Last Month 4
Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |