Giter Site home page Giter Site logo

react-firebaseui-web-demo's Introduction

FirebaseUI for web - React Auth demo

This project was bootstrapped with Create React App and modified to match the Firebase UI for web - Auth demo.

Prerequisite

You need to have created a Firebase Project in the Firebase Console as well as configured a web app.

Installation

Install the firebase command line tool with npm install -g firebase-tools (See docs).

Enable the Auth providers you would like to offer your users in the console, under Auth > Sign-in methods.

Run:

git clone https://github.com/ryansully/react-firebaseui-web-demo.git
cd react-firebaseui-web-demo
npm install

This will clone the repository in the current directory.

If you want to be able to deploy the demo app to one of your own Firebase Hosting instance, configure it using the following command:

firebase use --add

Select the project you have created in the prerequisite, and type in default or any other name as the alias to use for this project.

Copy .env to .env.local:

cp .env .env.local

Modify .env.local with the configuration values from the Web snippet code found in the console (either by clicking "Add Firebase to your web app" button in your Project overview, or clicking the "Web setup" button in the Auth page).

Copy .env.local to .env.test.local:

cp .env.local .env.test.local

Deploy

To deploy the demo app, run the following command in the root directory:

npm start

This will compile all the files needed to run FirebaseUI, and start a server locally at http://localhost:3000.

react-firebaseui-web-demo's People

Contributors

formido avatar ryansully avatar

Stargazers

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

Watchers

 avatar  avatar

Forkers

formido minhkuheo

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.