Home
Softono
nuxt3-firebase-auth

nuxt3-firebase-auth

Open source Vue
45
Stars
13
Forks
1
Issues
1
Watchers
3 years
Last Commit

About nuxt3-firebase-auth

Nuxt3 minimal demo with Firebase Authentication integrated + PrimeVue

Platforms

Web Self-hosted

Languages

Vue

Links

Nuxt3 minimal starter with Firebase Authentication integrated + PrimeVue

Authenticated server-side rendering with Nuxt 3 and Firebase 9

Screenshot

Features

  • ๐Ÿ’š Nuxt 3 - SSR, ESR, File-based routing, components auto importing, modules, etc. Are you new in Nuxt3? We recommend to look at the documentation.

  • ๐Ÿ”ฅ The <script setup> syntax

  • ๐Ÿš  Firebase v9 for Firebase Authentication services (client side authentication)

  • ๐Ÿš€ The PrimeVue for styled components

  • ๐Ÿšฆ VeeValidate for input forms with i18n support

  • ๐Ÿ“ฅ APIs auto importing - for Composition API, VueUse and custom composables.

  • ๐Ÿฆพ Mainly TypeScript

IDE

We recommend using VS Code with Volar to get the best experience (You might want to disable Vetur if you have it).

Setup

Make sure to install the dependencies

npm install

Firebase setup

First of all, you need to create Firebase acount and SDK setup. You need to create .env file with this content from Firebase project (security credentials should never be shared):

cp .env.example .env

Set service account environment variable:

FIREBASE_API_KEY=

Development

Start the development server on http://localhost:3000

npm run dev

Preview

Delete .output folder and run below commands

npm run build
npx nuxi preview

Production

* Deploy nuxt with Firebase Hosting (Blaze Plan needed)

* Deploy nuxt with Vercel

* Deploy on others PaaS with Nitro

References