Giter Club home page Giter Club logo

chain-reaction.common's Introduction

chain-reaction.common

Overview

This is the "common" project of the Chain Reaction multi-platform sample project. It houses the Redux components and infrastructure communication code for the application.

Spliting off the Redux state management and generic services was intentional. This illustrates how one could have a shared library across Web, iOS, and Android apps written in React and React Native

Installation

Follow the instructions on the Chain Reaction readme.md, as this entire solution relies on a specific folder structure which is managed by the main repo.

Development

The chain-reaction.web and chain-reaction.mobile projects directly reference the /src folder of this project for ease of development. Simply make any changes to the files under /src to see them reflected on the app on which you are working.

Library Readiness

This project is written in ES2015 (see the /src directory). However, there is support for deploying this to NPM using transpiled ES5 code. Simply run npm run compile to regenerate the /lib folder. You'll notice that the application's index.js entry point actually references /lib and not /src.

To test this, in either the chain-reaction.web or chain-reaction.mobile projects, run npm install git://github.com/ericnograles/chain-reaction.common --save. Note that this repo will then be pulled into node_modules and can be referenced using:

  • ES2015: import * as common from chain-reaction.common
  • ES5: var common = require('chain-reaction.common')

What's Under the Hood?

chain-reaction.common's People

Contributors

ericnograles avatar

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.