Skip to content

Latest commit

 

History

History
50 lines (32 loc) · 1009 Bytes

README.md

File metadata and controls

50 lines (32 loc) · 1009 Bytes

loom-docker

A docker container to run a Loom dAppChain

Getting started

  1. Write your smart contract into a folder "/workspace/foo/MySideChainContract.sol"

  2. Start the dAppchain

docker run -it \ 
    -p 46656:46656 -p 46657:46657 -p 46658:46658 -p 9999:9999 \
    -v /workspace/foo:/loom/contracts \
    -e CONTRACT_NAME=MySideChainContract \
     gjeanmart/loom-docker

Samples

Checkout the code in https://github.com/gjeanmart/loom-docker/tree/master/samples

Simple Storage

docker run -it \ 
    -p 46656:46656 -p 46657:46657 -p 46658:46658 -p 9999:9999 \
    -v /path/to/loom-docker/samples/SimpleStorage:/loom/contracts \
    -e CONTRACT_NAME=SimpleStorage \
     gjeanmart/loom-docker

Simple Social Network

Based on this example: https://loomx.io/developers/docs/en/simple-social-network-example.html

$ docker-compose build 
$ docker-compose up

Open the browser on http://localhost:8080

TODO List

  • Manage multi-file contracts
  • Manage peers