Git Product home page Git Product logo

react-native-redux-firebase-todo's Introduction

React Native Redux Firebase Todo

demo

Download

MyTodo.apk

Technology Stack

  • React Native
  • Redux
  • CodePush
  • Firebase
  • redux-thunk
  • redux-persist
  • react-native-drawer
  • react-native-router-flux

Install at local

Open Terminal, then type command:

git clone https://github.com/dwicao/react-native-redux-firebase-todo.git

Go to project folder :

cd react-native-redux-firebase-todo

Type following command :

npm install

You must have ANDROID_HOME environtment variable, to check if you already have, type in your terminal :

echo $ANDROID_HOME

If blank, you can read at HERE

Make sure you have already installed React Native globally by running this command :

sudo npm install -g react-native-cli

In your terminal type this to make sure react-native know each addons modules in this app :

react-native link

To get CODEPUSH_KEY you must create a CodePush account, read instruction HERE

Create new file at react-native-redux-firebase-todo/android/gradle.properties and fill with this lines of code :

android.useDeprecatedNdk = true
CODEPUSH_DEBUG_KEY = "INSERT_YOUR_KEY_HERE"
CODEPUSH_RELEASE_KEY = "INSERT_YOUR_KEY_HERE"

Create a firebase account at HERE

Create a new Project at Firebase and go to Overview tab, and click Firebase for Web, copy that key at react-native-redux-firebase-todo/src/firebase/index.js and fill with this line of codes:

import * as firebase from 'firebase';

firebase.initializeApp({
  apiKey: "FILL_THIS_WITH_YOURS",
  authDomain: "FILL_THIS_WITH_YOURS",
  databaseURL: "FILL_THIS_WITH_YOURS",
  storageBucket: "FILL_THIS_WITH_YOURS",
  messagingSenderId: "FILL_THIS_WITH_YOURS"
});

export const firebaseRef = firebase.database().ref();
export default firebase;

At this point, you should be able to run the project. To run your project on your device/emulator at Debug configuration, type :

npm run android-dev

Or if you want to run at iOS simulator, run:

react-native run-ios

If you have error message like Execution failed for task ':app:dexDebug'. run this on your terminal :

npm run android-clean

To build .apk file just type :

npm run android-release

You must sign .apk with keystore, to do this just type in your terminal :

npm run android-signer

The .apk file is located at react-native-redux-firebase-todo/android/app/build/outputs/apk/app-release-unsigned.apk

Available Command

npm run ... Description
adb-reverse Reset port ADB to tcp:8081
ios-bundle Bundle with entry file index.ios.js
ios-build Run ios project with “Release” configuration
ios-codepush-staging Push changes your bundle to CodePush Staging environtment
ios-codepush-production Push changes your bundle to CodePush Production environtment
android-clean Fix building android if preDexDebug error
android-build-debug Build android .apk with “Debug” configuration
android-release Build android .apk with “Release” configuration
android-signkey Generate keystore android
android-signer To sign app-release-unsigned.apk with random keystore
android-dev Run android development-mode on simulator
android-bundle Bundle with entry file index.android.js
codepush-key View your staging and development key at CodePush
android-codepush-staging Push changes your bundle to CodePush Staging environtment
android-codepush-production Push changes your bundle to CodePush Production environtment

License

MIT

react-native-redux-firebase-todo's People

Watchers

 avatar  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.