Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jacobbubu/rnmuxnodebutt
Demo how to integrate existing node.js assets (stream, scuttlebutt, dnone..) into react-native
https://github.com/jacobbubu/rnmuxnodebutt
Last synced: 14 days ago
JSON representation
Demo how to integrate existing node.js assets (stream, scuttlebutt, dnone..) into react-native
- Host: GitHub
- URL: https://github.com/jacobbubu/rnmuxnodebutt
- Owner: jacobbubu
- Created: 2015-09-28T07:31:09.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-28T08:07:15.000Z (over 9 years ago)
- Last Synced: 2024-11-13T16:12:02.552Z (2 months ago)
- Language: Objective-C
- Homepage:
- Size: 230 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is a demo project to show how to use node.js modules in react-native env(only iOS supported).
# Clone and start Server first
```
git clone https://github.com/jacobbubu/mux-dnode-butt.git
cd mux-dnode-butt
npm install
npm start
```The server will be listening on port 9999.
This server consists of a [dnode](https://github.com/substack/dnode) for rpc and a [scuttlebutt model](https://github.com/dominictarr/scuttlebutt) running on a [multiplexed](https://github.com/dominictarr/mux-demux) [websocket stream](https://github.com/maxogden/websocket-stream).
# Install This Repo.
```
git clone https://github.com/jacobbubu/rnMuxNodeButt.git
cd rnMuxNodeButt
npm install
```## To Run
```
npm start
```_This repo. use [react-native-webpack-server](https://github.com/mjohnston/react-native-webpack-server) for code packaging._
And then open `ios/rnMuxNodeButt.xcodeproj` in Xcode, click Run button(cmd+R).
The screenshot in simulator would looks like as following.
![Screenshot](https://github.com/jacobbubu/rnMuxNodeButt/blob/master/docs/Screen%20Shot.png?raw=true)