Giter Site home page Giter Site logo

todo-react's Introduction

TODO React

This web app is built on top of React using create-react-app and integrates with Firebase's realtime database via Re-base.

Live Demo

A demo of the app is available here.

Note: The live demo does not feature real time data persistence with Firebase. The reason for this being lack of user authentication. Every user who accesses the live demo would be able to read / write to the database. Can't have that! You can see the database feature in action if you choose to clone the repo. See below.

Getting Started

This project is purely educational. It's my first application built with React. With that being said, anyone doing the same can contribute. You can also clone it and get your hands dirty to see how it works.

Clone the repo

// ssh
git clone [email protected]:jake-wies/todo-react.git

// https
git clone https://github.com/jake-wies/todo-react.git

Install dependencies

npm install

Firebase

Before starting the app locally, go to the Firebase console and create a new project. Once that's done you'll be able to add the proper configuration settings in order to sync with Firebase's realtime database.

  1. After creating your project, click the red <> icon titled Add Firebase to your web app
  2. Copy the config object properties provided
  3. Open up /src/firebase-config.js and add your Firebase config object properties to the Config object
  4. Open /src/index.js. There are 2 lines that need to be uncommented in order to get Firebase working.
import Base from './rebase';
componentDidMount() {
  // ...
}

The first line imports the Re-base class from /src/rebase.js. The second syncs the App component's state to Firebase when it mounts.

Note: The messagingSenderId property in the config option provided by Firebase is not used in this project. Feel free to leave it out.

Run the app

Everything is set to run the application. Just run npm start in your terminal and profit!

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.