GithubHelp home page GithubHelp logo

react-and-firebase's Introduction

React ❤️ Firebase

Firebase is a great JSON based realtime database that let's you easily bind their db objects to DOM objects - which plays very well with React.

Pre-reqs

This project was created using create-react-app and assumes a basic understanding of React.

Setup

  1. You'll need to sign up for a Firebase account if you don't have one already.
  2. Create a Firebase project that you want to use for this.
  3. Get the config for your Firebase database from the Project Settings by clicking the big red button that says, Add Firebase to your web app.
  4. Replace the config object in src/fire.js with the config object from Step 3.
  5. In the console, run:
  • npm install
  • npm install -g firebase-tools (if you don't already have it)
  • firebase init - select Database and Hosting, then press Enter. Select the Firebase project that you created earlier. Keep the database rules file by pressing Enter. You'll want to use "build" for the public directory (for deploying with Firebase hosting), as this is the directory that has been optimized for production. Select yes to configure as a single page app. Do NOT overwrite the index.html file - type "N" and press Enter.
  1. When you're ready, in the console execute, npm run deploy (this is configured in the package.json file) or firebase deploy.
  2. You can run the app locally by executing npm start.

react-and-firebase's People

Watchers

James Cloos 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.