This repository was archived by the owner on Mar 10, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +1968
-14
lines changed Expand file tree Collapse file tree 5 files changed +1968
-14
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## Setup
4
4
5
- Install [ go-ipfs] ( https://ipfs.io/docs/install/ ) and start the daemon
5
+ Install [ go-ipfs] ( https://ipfs.io/docs/install/ ) and start the daemon.
6
+
7
+ Configure CORS as suggested by the README https://github.com/ipfs/js-ipfs-api#cors
6
8
7
9
``` bash
8
- $ ipfs daemon
10
+ > ipfs daemon
9
11
```
10
12
11
13
then in this folder run
12
14
13
15
``` bash
14
- $ npm install
15
- $ npm start
16
+ > npm install
17
+ > npm start
16
18
```
17
19
18
20
and open your browser at ` http://localhost:8888 ` .
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ <h3>Resolve an IPNS name</h3>
58
58
</ p >
59
59
</ div >
60
60
61
- < script src ="https://npmcdn .com/ipfs-api/dist/index.js "> </ script >
61
+ < script src ="https://unpkg .com/ipfs-api/dist/index.js "> </ script >
62
62
< script src ="bundle.js "> </ script >
63
63
</ body >
64
64
</ html >
Original file line number Diff line number Diff line change 1
1
'use strict'
2
2
3
- const ipfs = window . IpfsApi ( )
3
+ const ipfs = window . IpfsApi ( '/ip4/127.0.0.1/tcp/5001' )
4
4
5
5
const DOM = {
6
6
status : document . getElementById ( 'status' ) ,
You can’t perform that action at this time.
0 commit comments