Security News
JavaScript Leaders Demand Oracle Release the JavaScript Trademark
In an open letter, JavaScript community leaders urge Oracle to give up the JavaScript trademark, arguing that it has been effectively abandoned through nonuse.
remotedev-server
Advanced tools
Bridge for communicating with an application remotely via Redux DevTools extension, Remote Redux DevTools or RemoteDev. Running your server is optional, you can use remotedev.io instead.
npm install --save-dev remotedev-server
Also there's a docker image you can use.
package.json
:"scripts": {
"remotedev": "remotedev --hostname=localhost --port=8000"
}
So, you can start remotedev server by running npm run remotedev
.
server.js
script you use for starting a development server:var remotedev = require('remotedev-server');
remotedev({ hostname: 'localhost', port: 8000 });
So, you can start remotedev server together with your dev server.
remotedev --hostname=localhost --port=8000
Set hostname
and port
to the values you want. hostname
by default is localhost
and port
is 8000
.
To use WSS, set protocol
argument to https
and provide key
, cert
and passphrase
arguments.
Console argument | description | default value |
---|---|---|
--hostname | hostname | localhost |
--port | port | 8000 |
--protocol | protocol | http |
--key | the key file for running an https server (--protocol must be set to 'https') | - |
--cert | the cert file for running an https server (--protocol must be set to 'https') | - |
--passphrase | the key passphrase for running an https server (--protocol must be set to 'https') | - |
--adapter | the database adapter name | - |
--dbOptions | the database adapter options string to pass | - |
--logLevel | the socket server log level - 0=none, 1=error, 2=warn, 3=info | 3 |
--wsEngine | the socket server web socket engine - ws or uws | uws |
package.json
:"scripts": {
"remotedev": "remotedev --hostname=localhost --port=8000 --injectserver=reactnative"
}
The injectserver
value can be reactnative
or macos
(react-native-macos), it used reactnative
by default.
Then, we can start React Native server and RemoteDev server with one command (npm start
).
Add in your React Native app's package.json
:
"scripts": {
"remotedev-revert": "remotedev --revert=reactnative"
}
Or just run $(npm bin)/remotedev --revert
.
Note that if you're using
injectserver
argument explained above, this step is not necessary.
If you're running an Android 5.0+ device connected via USB or an Android emulator, use adb command line tool to setup port forwarding from the device to your computer:
adb reverse tcp:8000 tcp:8000
If 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 or remotedev.
You can store reports via redux-remotedev
and get them replicated with Redux DevTools extension or Remote Redux DevTools. You can get action history right in the extension just by clicking the link from a report.
Remotedev 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.
Storage | adapter | dbOptions argument example (optional) | install |
---|---|---|---|
Firebase | firebase | { basePath: 'https://my-app.firebase.io' } | npm install --save js-data-firebase |
HTTP | http | { basePath: 'https://my-rest-server/api' } | npm install --save js-data-http |
LevelUp | levelup | './db' (the levelup "db" object will be available at "adapter.db") | npm install --save js-data-levelup |
MongoDB | mongodb | { name: 'user', idAttribute: '_id', table: 'users' } | npm install --save js-data-mongodb |
MySQL | sql | { client: 'mysql', connection: { host: '123.45.67.890', user: 'ubuntu', password: 'welcome1234', database: 'db1' } | npm install --save js-data-sql |
Postgres | sql | { client: 'pg', connection: { host: '123.45.67.890', user: 'ubuntu', password: 'welcome1234', database: 'db1' } | npm install --save js-data-sql |
Redis | redis | See the configurable options for node_redis | npm install --save js-data-redis |
RethinkDB | rethinkdb | { host: '123.456.68.987', db: 'my_db' } | npm install --save rethinkdbdash js-data-rethinkdb |
SQLite3 | sql | { client: 'sqlite3', connection: { host: '123.45.67.890', user: 'ubuntu', password: 'welcome1234', database: 'db1' } | npm install --save js-data-sql |
Implement a custom adapter for JSData.
MIT
FAQs
Run the RemoteDev monitor on your local server.
The npm package remotedev-server receives a total of 1,509 weekly downloads. As such, remotedev-server popularity was classified as popular.
We found that remotedev-server demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
In an open letter, JavaScript community leaders urge Oracle to give up the JavaScript trademark, arguing that it has been effectively abandoned through nonuse.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.