Giter VIP home page Giter VIP logo

mintnet's Introduction

Mintnet

CircleCI

Install

First, install docker-machine and get a DigitalOcean account and access token.

Then, install mintnet.

go get github.com/tendermint/mintnet

If the go get fails, you may need to use glide to install vendored dependencies:

cd $GOPATH/src/github.com/tendermint/mintnet
make get_vendor_deps
go install

Deploy

To create machines on DigitalOcean:

mintnet create -- --driver=digitalocean --digitalocean-access-token=YOUR_ACCCESS_TOKEN

Or, to create machines on AWS:

mintnet create -- --driver=amazonec2 --amazonec2-access-key=AKI******* --amazonec2-secret-key=8T93C********* --amazonec2-zone=b --amazonec2-vpc-id=vpc-****** aws01`

By default this creates 4 new machines. Check the help messages for more info, e.g. mintnet create --help.

Next, create the testnet configuration folders.

mintnet init chain mytest_dir/

This creates directories in mytest_dir for the application.

ls mytest_dir/
  app   # Common configuration directory for your blockchain applicaiton
  core  # Common configuration directory for Tendermint Core
  data  # Common configuration directory for MerkleEyes key-value store
  mach1 # Configuration directory for the Tendermint core daemon on machine 1
  mach2 # Configuration directory for the Tendermint core daemon on machine 2
  mach3 # Configuration directory for the Tendermint core daemon on machine 3
  mach4 # Configuration directory for the Tendermint core daemon on machine 4

Now start the testnet service.

mintnet start mytest mytest_dir/

You can stop and remove the application as well.

mintnet rm --force mytest

Don't forget to destroy your createed machines!

mintnet destroy --machines="mach1,mach2,mach3,mach4"

Using VirtualBox on Mac OSX

If you're experiencing slow network conditions on a local virtualbox VM, see this link.

mintnet's People

Contributors

jaekwon avatar ebuchman avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.