Skip to content

Commit 5c5be37

Browse files
committed
Added readme
1 parent 2117473 commit 5c5be37

File tree

11 files changed

+58
-2
lines changed

11 files changed

+58
-2
lines changed

js/modules/mutable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ function nuke_logs(files) {
6767
// DEFAULT HISTORY CONTENT
6868
var latestDefault = {
6969
"name": "1.0",
70-
"hash": "QmfAUMMnn33mnBAZP84jyWn3NVwKRjG3KN1R92SX9SnJD2",
70+
"hash": "QmajVZUfnV7ne7hnn8Jr968wWhKxn7HtsoJ8SWAM4aDnLR",
7171
"timestamp": unixTime()
7272
}
7373

readme.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
## Borrowed Tools/Functionality
2+
- [GO-IPFS](https://github.com/ipfs/go-ipfs)
3+
- [JS-IPFS-API](https://github.com/ipfs/js-ipfs-api)
4+
- [Truffle](https://github.com/trufflesuite/truffle)
5+
- [Ganache](https://github.com/trufflesuite/ganache-cli)
6+
- [jQuery](https://jquery.com/)
7+
8+
- [NodeJS & NPM](https://nodejs.org/en/)
9+
- [Backported Monaco Editor by Tim Kendrick](https://github.com/timkendrick/vscode-monaco-editor)
10+
- [Buffer](https://www.npmjs.com/package/buffer)
11+
- [Browserify](https://www.npmjs.com/package/browserify)
12+
- [Moment](https://www.npmjs.com/package/moment)
13+
14+
## Turn on necessary components & compile
15+
16+
Turn on IPFS Daemon:
17+
> $ shell/daemon.sh
18+
19+
Push temp dataset to IPFS Swarm:
20+
> $ shell/dataset.sh
21+
22+
Fix "CORS" error:
23+
> [https://github.com/ipfs/js-ipfs-api#cors](https://github.com/ipfs/js-ipfs-api#cors)
24+
25+
Turn on Local Blockchain:
26+
> $ shell/ganache.sh
27+
28+
Compile/Deploy Smart Contracts:
29+
> $ shell/deploy.sh
30+
31+
Compile project node modules:
32+
> $ shell/browserify.sh
33+
34+
## Change default values
35+
36+
Blockchain & IPFS address/port:
37+
> [js/setup.js @ row 2-4](https://github.com/wickstjo/ipfs/blob/master/js/setup.js#L2)
38+
39+
Root IPFS directory:
40+
> [js/modules/mutable.js @ row 70](https://github.com/wickstjo/ipfs/blob/master/js/modules/mutable.js#L70)

shell/browserify.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
browserify js/app.js > js/bundle.js

shell/daemon.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ipfs daemon

shell/dataset.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
ipfs swarm peers
2+
ipfs add -r shell/dataset/
3+
echo ""
4+
echo "Publishing....."
5+
ipfs name publish QmajVZUfnV7ne7hnn8Jr968wWhKxn7HtsoJ8SWAM4aDnLR

shell/dataset/index.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<body>
2+
Hello World!
3+
</body>

shell/dataset/js/app.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
$('#test').html('testing');

shell/dataset/readme.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
text here

shell/deploy.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
rm -rf ../build/contracts/
22
truffle migrate ../
3-
#truffle console
3+
4+
# truffle console
5+
# Main.deployed().then(function(instance) { app = instance })

shell/ganache.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ganache-cli

0 commit comments

Comments
 (0)