{"name":"remotedev-server","version":"0.3.0-beta-10","description":"Run the RemoteDev monitor on your local server.","main":"index.js","bin":{"remotedev":"bin/remotedev.js"},"files":["bin","lib","views","index.js","defaultDbOptions.json"],"scripts":{"test":"NODE_ENV=test mocha --recursive","test:watch":"NODE_ENV=test mocha --recursive --watch","prepublish":"npm run test"},"repository":{"type":"git","url":"git+https://github.com/zalmoxisus/remotedev-server.git"},"keywords":["devtools","remotedev"],"engines":{"node":">=4.0.0"},"author":{"name":"Mihail Diordiev","email":"zalmoxisus@gmail.com","url":"https://github.com/zalmoxisus"},"license":"MIT","bugs":{"url":"https://github.com/zalmoxisus/remotedev-server/issues"},"homepage":"https://github.com/zalmoxisus/remotedev-server","dependencies":{"body-parser":"^1.15.0","chalk":"^1.1.3","cors":"^2.7.1","ejs":"^2.4.1","express":"^4.13.3","getport":"^0.1.0","graphql":"^0.10.3","graphql-server-express":"^1.0.0","graphql-tools":"^1.1.0","js-data":"^2.9.0","knex":"0.11.10","lodash":"^4.15.0","minimist":"^1.2.0","morgan":"^1.7.0","semver":"^5.3.0","socketcluster":"^8.0.0","sqlite3":"^3.1.8","uuid":"^3.0.1"},"devDependencies":{"expect":"^1.20.2","mocha":"^3.2.0","socketcluster-client":"^5.1.1","supertest":"^3.0.0"},"readme":"RemoteDev Server\n================\n\nBridge for communicating with an application remotely via [Redux DevTools extension](https://github.com/zalmoxisus/redux-devtools-extension), [Remote Redux DevTools](https://github.com/zalmoxisus/remote-redux-devtools) or [RemoteDev](https://github.com/zalmoxisus/remotedev). Running your server is optional, you can use [remotedev.io](https://remotedev.io) instead.\n\n### Installation\n\n```\nnpm install --save-dev remotedev-server\n```\n\nAlso [there's a docker image](https://github.com/jhen0409/docker-remotedev-server) you can use.\n\n### Usage\n\n##### Add in your app's `package.json`:\n\n```\n\"scripts\": {\n  \"remotedev\": \"remotedev --hostname=localhost --port=8000\"\n}\n```\n\nSo, you can start remotedev server by running `npm run remotedev`.\n\n##### Import in your `server.js` script you use for starting a development server:\n\n```js\nvar remotedev = require('remotedev-server');\nremotedev({ hostname: 'localhost', port: 8000 });\n```\n\nSo, you can start remotedev server together with your dev server.\n\n##### Install the package globally (not recommended) just run:\n\n```\nremotedev --hostname=localhost --port=8000\n```\n\n### Connection settings\n\nSet `hostname` and `port` to the values you want. `hostname` by default is `localhost` and `port` is `8000`.\n\nTo use WSS, set `protocol` argument to `https` and provide `key`, `cert` and `passphrase` arguments.\n\n### Inject to React Native local server\n\n##### Add in your React Native app's `package.json`:\n\n```\n\"scripts\": {\n  \"remotedev\": \"remotedev --hostname=localhost --port=8000 --injectserver=reactnative\"\n}\n```\n\nThe `injectserver` value can be `reactnative` or `macos` ([react-native-macos](https://github.com/ptmt/react-native-macos)), it used `reactnative` by default.\n\nThen, we can start React Native server and RemoteDev server with one command (`npm start`).\n\n##### Revert the injection\n\nAdd in your React Native app's `package.json`:\n\n```\n\"scripts\": {\n  \"remotedev-revert\": \"remotedev --revert=reactnative\"\n}\n```\n\nOr just run `$(npm bin)/remotedev --revert`.\n\n### Connect from Android device or emulator\n\n> Note that if you're using `injectserver` argument explained above, this step is not necessary. \n\nIf you're running an Android 5.0+ device connected via USB or an Android emulator, use [adb command line tool](http://developer.android.com/tools/help/adb.html) to setup port forwarding from the device to your computer:\n\n```\nadb reverse tcp:8000 tcp:8000\n```\n\nIf you're still use Android 4.0, you should use `10.0.2.2` (Genymotion: `10.0.3.2`) instead of `localhost` in [remote-redux-devtools](https://github.com/zalmoxisus/remote-redux-devtools#storeconfigurestorejs) or [remotedev](https://github.com/zalmoxisus/remotedev#usage).\n\n### Save reports and logs\n\nYou can store reports via [`redux-remotedev`](https://github.com/zalmoxisus/redux-remotedev) and get them replicated with [Redux DevTools extension](https://github.com/zalmoxisus/redux-devtools-extension) or [Remote Redux DevTools](https://github.com/zalmoxisus/remote-redux-devtools). You can get action history right in the extension just by clicking the link from a report.\n\nRemotedev server is database agnostic. By default everything is stored in the memory, but you can persist data by specifying one of the jsData adapters above for `adapter` argument. Also you can add an `dbOptions` argument for database configuration. If not provided the default options will be used (for some adapters, like `sql`, it's required). You have to install the required adapter's npm package.\n\n| Storage   | `adapter` | `dbOptions` argument example (optional)                                                                                | install                                              |\n|-----------|-----------|------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------|\n| Firebase  | firebase  | `{ basePath: 'https://my-app.firebase.io' }`                                                                           | `npm install --save js-data-firebase`                |\n| HTTP      | http      | `{ basePath: 'https://my-rest-server/api' }`                                                                           | `npm install --save js-data-http`                    |\n| LevelUp   | levelup   | `'./db'` (the levelup \"db\" object will be available at \"adapter.db\")                                                   | `npm install --save js-data-levelup`                 |\n| MongoDB   | mongodb   | `{ name: 'user', idAttribute: '_id', table: 'users' }`                                                                 | `npm install --save js-data-mongodb`                 |\n| MySQL     | sql       | `{ client: 'mysql', connection: { host: '123.45.67.890', user: 'ubuntu', password: 'welcome1234', database: 'db1' }`   | `npm install --save js-data-sql`                     |\n| Postgres  | sql       | `{ client: 'pg', connection: { host: '123.45.67.890', user: 'ubuntu', password: 'welcome1234', database: 'db1' }`      | `npm install --save js-data-sql`                     |\n| Redis     | redis     | See the configurable options for [`node_redis`](https://github.com/NodeRedis/node_redis)                               | `npm install --save js-data-redis`                   |\n| RethinkDB | rethinkdb | `{ host: '123.456.68.987', db: 'my_db' }`                                                                              | `npm install --save rethinkdbdash js-data-rethinkdb` |\n| SQLite3   | sql       | `{ client: 'sqlite3', connection: { host: '123.45.67.890', user: 'ubuntu', password: 'welcome1234', database: 'db1' }` | `npm install --save js-data-sql`                     |\n\nImplement a [custom adapter for JSData](http://www.js-data.io/docs/working-with-adapters#custom-adapters).\n\n### License \n\nMIT\n","readmeFilename":"README.md","gitHead":"008f980349832026f3875f17a0b036abdd0529e7","_id":"remotedev-server@0.3.0-beta-10","_shasum":"e2844bd01d02f0b008eaa1924ebfd2b9e7198acb","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.7.3","_npmUser":{"name":"zalmoxisus","email":"zalmoxisus@gmail.com"},"dist":{"shasum":"e2844bd01d02f0b008eaa1924ebfd2b9e7198acb","tarball":"http://registry-npm.ywwl.com/remotedev-server/download/remotedev-server-0.3.0-beta-10.tgz","integrity":"sha512-FL61c9AOa4TWaTieRn0G60X529wXil42UXH3ynRoLMZ+SnKzjV2/xhYY95kKyptX7jyUESJeRSbAywEhfS/f1Q==","fileCount":20,"unpackedSize":29738,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbZ2IFCRA9TVsSAnZWagAAwfcP+weng2mrfgxWbnxevipe\nExVn0LKeNw+bF5/TLyyxHMz3dDppGGq4q18wZyBABGpd6FgyXEPKXn5q/lXw\nGmdDB75nhzmxfBPqGoy3IdF1aMzcC/3t6K+WrW8BtYrAF9W0Z4pL4fIlvIvX\nAo/c2zqAZCyloM3z98vd2PSLA7h1UJ9OG3dNsA3X5Ns78yWDmlm+OzHfRWvH\nXG5yovtfj6tABwlOSs9+lA88dyzPtyERVfUWiaMUNG8ot3GfxU60Y5HK12tC\nomDx70Fx0XPYKo/q1emQ4Ue8Q1FoWWt4/M1HVKiLkIRD4ZP3QCF7rAEkBBhN\ncYzbgSWsrnjB424tLWvPsXkledzr0XIhpV7LzBxI+mIp6OJ7vWgcUJv/CbW4\ndodCOSW3lqGfUpkC63KxEQnsocuBrHjb+inHnShLVJAi1z+aZ4WQKXJPzDPg\nD8iQ4jUtfgwDbG+K602I9ZBI2xMdwIiWb9zC6GYDtCNaN/fc79wtJSReiiTF\nnQj04wtsMQNdbdxQmfwH4coMjiV+M+Z7tYqE3hxWxuW78yqPrMnQyTdtH/aR\nQyCc+fzy2yQZuKnHDtJqG5FF2Dk04Rni3nL3s9DuvG7RQujSKOxQ2slbNabU\neCg1kcmSziCaIxHtwsgsEWyyL0pJVwbPJR1Y7zZhajwrD7TC7ZdO7UVHaxtf\nFDfE\r\n=KO9g\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCNLyX9zwR4eIvOkCi6gunSA0E0nTYmpK5gnuv8k8DDlwIgdhUEOkphR8Ncxx6C6VjWRCknDeq/SJZGu5qbgHoA28w="}],"size":9889,"noattachment":false,"key":"/remotedev-server/-/remotedev-server-0.3.0-beta-10.tgz"},"maintainers":[{"name":"zalmoxisus","email":"zalmoxisus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/remotedev-server_0.3.0-beta-10_1533501956614_0.9693154231465768"},"_hasShrinkwrap":false,"publish_time":1533501956707,"_cnpm_publish_time":1533501956707,"dist-tags":{"alpha":"0.3.0-alpha-2","beta":"0.3.0-beta-10","latest":"0.3.1","next":"0.3.0-beta-5"}}