All Projects â†’ james2doyle â†’ Nuxt Firebase Auth

james2doyle / Nuxt Firebase Auth

An example of using Nuxt with Firebase to auth users without a server

Projects that are alternatives of or similar to Nuxt Firebase Auth

Buefy Shop
A sample shop built with Nuxt, Stripe, Firebase and Serverless Functions
Stars: ✭ 207 (+72.5%)
Mutual labels:  firebase, nuxt
Firebase Module
đŸ”„ Easily integrate Firebase into your Nuxt project. đŸ”„
Stars: ✭ 493 (+310.83%)
Mutual labels:  firebase, nuxt
Nuxt Ssr Firebase
Nuxt.js Universal App with SSR via Firebase Functions and Firebase Hosting
Stars: ✭ 273 (+127.5%)
Mutual labels:  firebase, nuxt
Virapro.ru
[E-commerce] Plumbing Store
Stars: ✭ 45 (-62.5%)
Mutual labels:  firebase, nuxt
Nuxt Firebase Sns Example
Nuxt v2 & Firebase(Hosting / Functions SSR / Firestore), Google Auth SNS Example.
Stars: ✭ 485 (+304.17%)
Mutual labels:  firebase, nuxt
Pokemon63
「みんăȘた63 - ă‚čクăƒȘăƒŒăƒłă‚·ăƒ§ăƒƒăƒˆă‹ă‚‰è‡Șć‹•è§Łæžă§ăă‚‹ăƒă‚±ăƒąăƒłăźéžć‡șæŠ•çšżă‚”ă‚€ăƒˆă€ăźă‚œăƒŒă‚čă‚łăƒŒăƒ‰
Stars: ✭ 107 (-10.83%)
Mutual labels:  firebase, nuxt
React Most Wanted
React starter kit with "Most Wanted" application features
Stars: ✭ 1,867 (+1455.83%)
Mutual labels:  firebase
Python Firebase
⛔ [DEPRECATED] python wrapper for Firebase's REST API
Stars: ✭ 117 (-2.5%)
Mutual labels:  firebase
Bitwave
Front end for [bitwave.tv] - an open platform live video streaming service
Stars: ✭ 113 (-5.83%)
Mutual labels:  nuxt
Enegrecer Web
Verdade Seja Dita!
Stars: ✭ 113 (-5.83%)
Mutual labels:  firebase
Online School Management App Angular Firebase
Angular 11.0 Firebase App - Online School , Student Management App
Stars: ✭ 120 (+0%)
Mutual labels:  firebase
Android Things Electricity Monitor
Electricity Monitor using Android Things and Firebase Realtime Database
Stars: ✭ 118 (-1.67%)
Mutual labels:  firebase
Crucible
API CMS UI powered by Firebase, mithril, and my own dwindling sanity. Oh, and acronyms.
Stars: ✭ 116 (-3.33%)
Mutual labels:  firebase
Hify
Social network powered by firebase
Stars: ✭ 115 (-4.17%)
Mutual labels:  firebase
Canner Firebase Cms
đŸ”„ Content management for Firebase Realtime Database with SSR supported with NextJS, for blog, ecommerce, mobile apps and even chatbot! This project is based on Canner CMS
Stars: ✭ 118 (-1.67%)
Mutual labels:  firebase
Nuxt Class Component
ES / TypeScript decorator for class-style Nuxt/Vue components
Stars: ✭ 114 (-5%)
Mutual labels:  nuxt
Firebase Subscription Payments
Example web client for the `firestore-stripe-subscriptions` Firebase Extension using Stripe Checkout and the Stripe Customer Portal.
Stars: ✭ 119 (-0.83%)
Mutual labels:  firebase
Simple Snapchat
A Snapchat clone developed in Swift 3 and Firebase
Stars: ✭ 113 (-5.83%)
Mutual labels:  firebase
Codelab Friendlychat Web
The source for the Firebase codelab for building a cross-platform chat app
Stars: ✭ 1,559 (+1199.17%)
Mutual labels:  firebase
Firebase Android Sdk
Firebase Android SDK
Stars: ✭ 1,704 (+1320%)
Mutual labels:  firebase

Nuxt Firebase Auth

An example of using Nuxt with Firebase to auth users without a server

The goal of this project is to make it really easy to generate an application that has Firebase (authentication + user account management) setup out-of-the-box.

My personal goal with the project is to allow me to create some simple PAAS apps without having to setup auth + Firebase every time.

Firebase Setup

Create a firebase.js file in the root of the project. It will look something like this:

module.exports = {
  'apiKey': 'info-from-firebase-web-instructions',
  'authDomain': 'info-from-firebase-web-instructions',
  'databaseURL': 'info-from-firebase-web-instructions',
  'projectId': 'info-from-firebase-web-instructions',
  'storageBucket': 'info-from-firebase-web-instructions',
  'messagingSenderId': 'info-from-firebase-web-instructions'
}

Rules

In order to keep other users from writing to paths they don't own, we need to add some rules to the database:

{
  "rules": {
    "accounts": {
      "$uid": {
        ".read": "$uid === auth.uid",
        ".write": "$uid === auth.uid"
      }
    }
  }
}

Social Logins

I have setup social login for Google and Github. You will need to login to your Firebase console and enable those signin methods. Google will work out-of-the-box with any Firebase app. But you will need to create a new oAuth application if you would like to use Github signin.

Build Setup

# install dependencies
$ npm install # Or yarn install

# serve with hot reload at localhost:3000
$ npm run dev

# build for production and launch server
$ npm run build
$ npm start

# generate static project
$ npm run generate

For detailed explanation on how things work, checkout the Nuxt.js docs.

Demo GIF

nuxt firebase auth preview image

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].