Giter Club home page Giter Club logo

react-firebase-auth's Introduction

React Firebse Auth

A react app using hooks integrated with firebase for authenticating users. The app includes following features:

  • Full Firebase Platform Support Including Firestore Database, Authentication, Analytics and Storage

  • Uses react-hooks only for components โœ… Functional components ๐Ÿšซ Class components

  • Utilize useReducer and useContext react hooks to manage global state of the app and useState for internal component states.

  • Various authentication methods to authenticate users:

      * SignUp using email and password 
      * Sign In using Facebook and Google
      * Sign In using an email link
    
  • MaterialUI design components

Getting Started

Installation

Step 1:

Download or clone this repo by using the link below:

git clone https://github.com/ooanishoo/react-firebase-auth

Step 2:

Setup a new project in firebase and get the configuration. It will look something like this:

Screen Shot 2020-03-09 at 3 30 32 pm

Step 3:

Go to the root folder of the project.

cd react-firebase-auth

Create a new file .env

touch .env

Add these env variables with the config values you recieived from firebase (No quotes ""required)

REACT_APP_FIREBASE_API_KEY=
REACT_APP_FIREBASE_AUTH_DOMAIN=
REACT_APP_FIREBASE_DATABASE_URL=
REACT_APP_FIREBASE_PROJECT_ID=
REACT_APP_FIREBASE_STORAGE_BUCKET=
REACT_APP_FIREBASE_MESSAGING_SENDER_ID=
REACT_APP_FIREBASE_APP_ID=
REACT_APP_FIREBASE_MEASUREMENT_ID=

Step 5:

Execute the following command in console to install the required packages:

npm install

Step 4: Simply run the app using

./run.sh

Screenshots

Sign Up Sign In

Sign In with Facebook Sign In with Google

Sign In with Facebook Sign In with Google

react-firebase-auth's People

Contributors

ooanishoo avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

react-firebase-auth's Issues

Compiling with errors and showing white screen on going to the website

`Compiled with warnings.

./src/componenets/Header.js
Line 37:17: 'isLoading' is assigned a value but never used no-unused-vars

./src/componenets/ForgotPassword.js
Line 39:22: 'error' is assigned a value but never used no-unused-vars

./src/componenets/SendSignInEmailLink.js
Line 43:22: 'error' is assigned a value but never used no-unused-vars

./src/componenets/SignInWithEmailLink.js
Line 66:6: React Hook useEffect has a missing dependency: 'url'. Either include it or remove the dependency array react-hooks/exhaustive-deps

Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before.

`
How do I fix this?

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.