Giter Site home page Giter Site logo

dghalbr / react-router-firebase-auth Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tylermcginnis/react-router-firebase-auth

0.0 2.0 0.0 37 KB

Example of how to have protected routes with Firebase and React Router.

HTML 12.05% JavaScript 87.28% CSS 0.67%

react-router-firebase-auth's Introduction

Auth with React Router V4 and Firebase V3

This is an example repo for authenticating with Firebase and React Router.

For more info, visit Protected routes and authentication with React Router v4

Using React 15.4.0, React Router 4, and Firebase 3.6.1

Features:

  • Protected Routes with React Router
  • Register new users with Firebase
  • Add new users to /users in your Firebase database
  • Login/Logout Functionality
  • Simple Boostrap UI

Instructions:

  • Swap out the firebase config in config/constants with your own
  • npm install
  • npm start
  • Visit localhost:3000

Try it out in a Docker container:

  • Run a container running the prod version: docker run -p 8080:80 -d allthethings/react-router-firebase-auth
  • Or build a dev version, locally: docker build -t react-router-firebase-auth .
  • Then run the image (listens for changes to src): docker run -v "$(pwd)/src:/code/src" -p 3000:3000 -d --name react-router-firebase-auth react-router-firebase-auth

react-router-firebase-auth's People

Contributors

tylermcginnis avatar chetstone avatar lucianotonet avatar robertglenn avatar bndkt avatar jonsamp avatar pcanterini avatar scottdixon avatar

Watchers

James Cloos avatar Dustin Halbrooks 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.