GithubHelp home page GithubHelp logo

clairechabas / auth-firebase-next-react-jotai Goto Github PK

View Code? Open in Web Editor NEW
21.0 3.0 5.0 268 KB

๐Ÿš€ Starter Next.js App With Firebase Auth | Next.js 13 + React 18 + Firebase v9 + Jotail

Home Page: https://auth-firebase-next-react-jotai.vercel.app

License: MIT License

JavaScript 0.51% TypeScript 99.49%
auth authentication authorization firebase firebase-auth firebase-firestore firebase-functions nextjs react starter starter-app jotai typescript chakra-ui

auth-firebase-next-react-jotai's Introduction

๐Ÿš€ Starter Next.js App With Firebase Auth

This repo is a starter to initialize a Next.js application with a fully functional authentication system using Firebase v9, using TypeScript, React & Jotai.

Feel free to clone or fork this repo to kickstart your next project in minutes ๐Ÿ”ฅ

If you're interested in learning the concepts used in this repo, I'm giving the final touch to a complete guide to set up and manage auth in a Next.js + React application with Firebase and Jotai. I will add the link here when it's published.

โ˜๏ธ This project would be better suited for production with tests. I will add those incrementally. Stay tuned.


Features

  • Sign-up/sign-in with email/password
  • Sign-in with Google
  • Sign-in with magic link
  • Reset password
  • Sign out
  • Add/remove user in Firestore on account creation/deletion with Firebase Cloud Functions
  • Auth modal state management with Jotai

Getting Started

  1. Clone this repo and install the dependencies:
npm install
# or
yarn install
# or
pnpm install

  1. Create a new project in Firebase and set it up for Firebase Auth, Functions and Firestore.

  1. Set the environment variables: copy the .env.example into a .env.local file and set each variable with your own values.

  1. Install the Firebase CLI
npm install -g firebase-tools
# or
yarn global add firebase-tools
# or
pnpm add -g firebase-tools

  1. Deploy the Firebase Cloud Functions
firebase deploy --only functions

  1. Run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev

Open http://localhost:3000 with your browser to see the result.


Preview of the home page and modal in sign-in view


Enjoy!

auth-firebase-next-react-jotai's People

Contributors

clairechabas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

auth-firebase-next-react-jotai's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.