Giter Club home page Giter Club logo

realstoman / nextjs-firebase-auth Goto Github PK

View Code? Open in Web Editor NEW
12.0 2.0 2.0 227 KB

Learn how to implement Google Firebase Authentication in your React, Next.js, TypeScript projects.

Home Page: https://firebase-auth-with-nextjs.netlify.app/

License: MIT License

JavaScript 6.59% TypeScript 80.27% CSS 10.27% Shell 2.87%
context-api firebase firebase-auth firebase-database framer framer-motion frontend hooks javascript js nextauth nextjs react reactjs tailwindcss typescript authentication nextjs-auth react-authentication

nextjs-firebase-auth's Introduction

Firebase Authentication With Next.js

Learn how to implement Google Firebase Authentication in your React, Next.js, TypeScript projects.

NextJS-Firebase-Auth

Demo URL

https://firebase-auth-with-nextjs.netlify.app/

Features

  • Authentication with Google Firebase v9
  • Form validation with Tailwind CSS
  • React context API
  • Custom Hooks
  • Clean UI
  • Protected routes
  • Next.js v13
  • TypeScript v4.9
  • Tailwind CSS v3
  • Forms designed for both light and dark modes
  • Framer motion transitions

To Contribute to this project, please read the Contribution Guidlines

Database Setup

  1. Create a Firebase project here

  2. Make sure the .env file is added to the .gitignore file

  3. Rename the .env.example to .env or .env.local

  4. Add your Firebase project configurations to the .env file. I have already prepared the the environment variables for you.

  5. If you're not familiar with setting up a Firebase project, read this article I wrote for this project available on my website where I have explained every step with screenshots.

Project Setup

  1. Make sure you have Node JS installed. If you don't have it:
brew install node
  1. Clone the repo:
git clone https://github.com/realstoman/nextjs-firebase-auth.git
  1. Open the project folder:
cd nextjs-firebase-auth
  1. Install packages and dependencies:
npm install
  1. Start a local dev server at http://localhost:3000:
npm run dev

Notes

  • Always run npm install after pulling new changes.
  • Feel free to use the code in your projects.
  • I'll be constantly updating this repo as I'll be adding more sections to it, so please always check the projects section of this repo to see what tasks are under todo or in progress.
  • Coming Soon I'll be doing a screencast. Soon I'll be uploading a video to my YouTube channel where I'll be going through the process of creating this project.
  • Contributions are welcome.

License

MIT

nextjs-firebase-auth's People

Contributors

realstoman avatar

Stargazers

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

Watchers

 avatar  avatar

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.