Skip to content

gjeanmart/loom-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Run a Loom Network dAppChain with Docker

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published