@e-chan1007/nuxt-firebase
TypeScript icon, indicating that this package has built-in type declarations

1.1.5 • Public • Published

Nuxt Firebase

npm version License: MIT Codacy Badge

Integrate Firebase with Nuxt (3)

Install

# npm
npm install -D firebase @e-chan1007/nuxt-firebase
# yarn
yarn add -D firebase @e-chan1007/nuxt-firebase
# pnpm
pnpm add -D firebase @e-chan1007/nuxt-firebase

Don't forget to install firebase.

Setup

  1. Add this module to the Nuxt config
export default defineNuxtConfig({
  modules: [
    '@e-chan1007/nuxt-firebase'
  ],
  firebase: {
    // set options here...
  }
})
  1. Use in your pages, components or server routes
<template>
  <p>Hello {{ currentUser?.displayName }}!</p>
</template>

<script lang="ts" setup>
const { currentUser } = useAuth();
</script>

Development

  • Run npm run dev:prepare to generate type stubs.
  • Use npm run dev to start playground in development mode.

Readme

Keywords

Package Sidebar

Install

npm i @e-chan1007/nuxt-firebase

Weekly Downloads

1

Version

1.1.5

License

MIT

Unpacked Size

33.2 kB

Total Files

43

Last publish

Collaborators

  • e_chan1007