klokie / nextjs-firebase-authentication

Next.js + Firebase Authentication Starter

Home Page:https://www.robinwieruch.de

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Next.js Starter with User Authentication/Authorization

Build Status Slack Greenkeeper badge

User Management with

  • Firebase (Tutorial)
    • Sign In
    • Sign Up
    • Sign Out
    • Password Change
    • Password Reset

Protected Routes with

Styling with

Type Support with

Tested Code Base with

Environment Variables with

Absolute Imports with

Installation

  • git clone git@github.com:rwieruch/nextjs-firebase-authentication.git
  • cd nextjs-firebase-authentication
  • See: "Use your own Firebase Credentials"
  • npm install
  • npm test
  • npm run dev
  • Visit http://localhost:3000/

Use your own Firebase Credentials

  • Visit https://firebase.google.com/ and create a Firebase App
  • Create a .env file to store your Firebase Credentials like so:
    FIREBASE_API_KEY=[apiKey]
    FIREBASE_AUTH_DOMAIN=[authDomain]
    FIREBASE_DATABASE_URL=[databaseURL]
    FIREBASE_PROJECT_ID=[projectID]
    FIREBASE_STORAGE_BUCKET=[storageBucket]
    FIREBASE_MESSAGING_SENDER_ID=[messagingSenderId]
    FIREBASE_APP_ID=[appId]
    FIREBASE_MEASUREMENT_ID=[measurementID]
    
    (It is advised you add this file you your .gitignore)
  • Activate Email/Password Sign-In Method in your Firebase App

About

Next.js + Firebase Authentication Starter

https://www.robinwieruch.de


Languages

Language:TypeScript 88.7%Language:JavaScript 11.1%Language:CSS 0.2%