Commit 17908f99 authored by Aral Balkan's avatar Aral Balkan

Add run scripts and usage instructions

parent 4072513e
# Hypercore Isomorphic Spike
Quick spike to test:
- [x] Basic setup in browser and under Node.js
- [ ] Replication between browser and Node.js [via WebSocket](https://github.com/maxogden/websocket-stream)
- [ ] Replication between browser and browser [via WebRTC](https://github.com/mafintosh/webrtc-swarm)
# Install
```bash
npm install
```
# Use
## Node
```bash
npm run dev
```
## Browser
1. Run:
```bash
npm run
```
2. View the server in the browser (e.g., _http://localhost:8080_)
......@@ -8,5 +8,13 @@
"random-access-idb": "^1.0.4",
"random-access-memory": "^3.0.0",
"util.promisify": "^1.0.0"
},
"scripts": {
"dev": "node index.js",
"browser": "./node_modules/browserify/bin/cmd.js index.js -o bundle.js && ./node_modules/http-server/bin/http-server -c-1"
},
"devDependencies": {
"browserify": "^16.2.2",
"http-server": "^0.11.1"
}
}
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment