For testing: Set up private IOTA-Network https://github.com/iotaledger/compass https://github.com/iotaledger/compass/blob/master/docs/HOWTO_private_tangle.md
- config.json
{
"seed": "WUHHNVTUVGXNWKONKFHDITCWXISCOWOOTCSXUJEHRGJ9FDXNJDWUUQXGQEQHSSVSRISKKLBMQIS9IKNOW",
"powMode": "CURLP81",
"sigMode": "CURLP27",
"security": 1,
"depth": 16,
"milestoneStart": 0,
"mwm": 1,
"tick": 20000,
"host": "http://localhost:14267"
}
- iota.ini
[IRI]
PORT = 14267
UDP_RECEIVER_PORT = 14600
NEIGHBORS = udp://localhost:14601
IXI_DIR = ixi
DEBUG = false
DB_PATH = db
ZMQ_ENABLED = true
ZMQ_PORT = 5556
API_HOST = 0.0.0.0
REMOTE-LIMIT-API = "addNeighbors"
- 02_run_iri.sh
#!/bin/bash
scriptdir=$(dirname "$(readlink -f "$0")")
. $scriptdir/lib.sh
load_config
COO_ADDRESS=$(cat $scriptdir/data/layers/layer.0.csv)
docker pull iotaledger/iri:latest
docker run -d -t --net host --rm -e DOCKER_IRI_REMOTE_LIMIT_API="" -v $scriptdir/iota.ini:/iri/conf/iota.ini -v $scriptdir/db:/iri/data -v $scriptdir/snapshot.txt:/snapshot.txt -p 14265 -p 5555 iotaledger/iri:latest \
--testnet \
--remote \
--testnet-coordinator $COO_ADDRESS \
--mwm $mwm \
--milestone-start $milestoneStart \
--milestone-keys $depth \
--snapshot /snapshot.txt \
--max-depth 1000 $@ \
-c /iri/conf/iota.ini
Install MongoDB for organizing the addresses. https://docs.mongodb.com/manual/installation/#tutorial-installation
Node.js und NPM
Folgende Punkte müssen auf der Konsole im Ordner prototyp ausgeführt werden.
- Run
npm install
in ./frontend and ./iota - Run the IOTA-Node
- If your Node is running on other ports than set before, change it also in ./iota/config.json
- Set your the IP of your IOTA-Node in the ./index.html, if you use a IOTA-Node, wich is not set up like shown, the seed has also to be updated
- Start the IOTA-Hub
cd iota && node server.js
- Start the Frontend of the charger and the turbine
cd charger_frontend && http-server
cd turbine_frontend && http-server
Use the web based interface on http://localhost:8080 and http://localhost:8081