browser: update script import (#622)
* browser: update since refactor * docs: redirect browser to new guide
This commit is contained in:
parent
fe340265c8
commit
78eeae6763
@ -75,7 +75,7 @@
|
|||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<script src="/app.js" defer></script>
|
<script src="app.js" defer></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>Bcoin, the browser full node</h1>
|
<h1>Bcoin, the browser full node</h1>
|
||||||
|
|||||||
@ -95,8 +95,7 @@ function show(obj) {
|
|||||||
floating.style.display = 'block';
|
floating.style.display = 'block';
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const json = obj && obj.toJSON ? obj.toJSON() : null;
|
floating.innerHTML = escape(JSON.stringify(obj, null, 2));
|
||||||
floating.innerHTML = escape(JSON.stringify(json, null, 2));
|
|
||||||
floating.style.display = 'block';
|
floating.style.display = 'block';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,16 +1,2 @@
|
|||||||
Because bcoin is written in node.js, it is capable of being browserified.
|
This page has been moved to [https://bcoin.io/guides/browser.html](https://bcoin.io/guides/browser.html)
|
||||||
|
|
||||||
## Running a full node in the browser
|
|
||||||
|
|
||||||
``` bash
|
|
||||||
$ cd ~/bcoin
|
|
||||||
$ make # Browserify bcoin
|
|
||||||
$ node browser/server.js 8080 # Start up a simple webserver and websocket->tcp bridge
|
|
||||||
$ chromium http://localhost:8080
|
|
||||||
```
|
|
||||||
|
|
||||||
You should see something like this: http://i.imgur.com/0pWySyZ.png
|
|
||||||
|
|
||||||
This is a simple proof-of-concept. It's not a pretty interface. I hope to see
|
|
||||||
others doing something far more interesting. A browser extension may be better:
|
|
||||||
the chrome extension API exposes raw TCP access.
|
|
||||||
Loading…
Reference in New Issue
Block a user