Code Monkey home page Code Monkey logo

remotedev's Introduction

RemoteDev

Monitoring flux app's actions along with states to a remote monitor. Meant to be used even in production with any flux architecture for web, universal, React Native, hybrid, desktop and server side apps.

Demo

Installation

NPM
npm install --save-dev remotedev
CDN
<script src="https://npmcdn.com/remotedev/dist/remotedev.min.js"></script>

Usage

// Send initial state to the monitor
RemoteDev.init({});

// Subscribe to RemoteDev to change state (for time travelling)
RemoteDev.subscribe(state => {
  this.setState(state);
});

// Send changes to the remote monitor
this.on('afterEach', action => {
  RemoteDev.send(action, this.state);
});

See the examples for different flux architectures.

Remote monitoring

Use one of our monitor apps to inspect action -> state changes:

The source code is here.

Also, it can be used in React Native debugger as a dock monitor.

Use locally

In order to make it simple to use, by default, the module and the monitor app communicate via remotedev.io server. Use remotedev-server cli to run it locally in order to make the connection faster and not to require an internet connection.

Also, we'll add later the ability to be used with redux-devtools-extension, so there wouldn't be any server necessary for local deployment of web apps.

Limitations

  • Not ready for production yet, use it only for development.
  • The app and the monitor should be under the same external IP address (will remove this restriction later).

License

MIT

remotedev's People

Contributors

zalmoxisus avatar jhen0409 avatar

Watchers

James Cloos avatar Benjamin Fogel 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.