Git Product home page Git Product logo

corda-quickstart's Introduction

Corda quickstart

Using this repo you can start Corda locally on your machine using Docker

Requirements

You need to have the following tools:

  • Docker (atleast version 17.09.0 and up) - you can find instructions here on how to install it on your machine.
  • docker-compose

How to start the network

Please note that all mentioned commands should be run in the root of this repository.

First run the following commands to initialize node configuration:

docker build --rm -t corda-tools-boostrapper ./docker/bootstrapper/
docker run -it --rm -v "$PWD/config":/source -w /source corda-tools-boostrapper

When the configuration is prepared, you can run the following command to start the Corda network:

docker-compose up -d

To check the port mappings of the nodes, you can use the following command:

docker-compose ps

To remove the network, run the following command:

docker-compose down

Change node configuration

If you need to change the node configuration, you can do that by editing *_node.conf files in config directory. Before doing any changes, run the following command to stop the nodes:

docker-compose stop

After you update the configuration, you should run the docker run -it --rm -v "$PWD/config":/source -w /source corda-tools-boostrapper command to modify the node configuration directories. When the tool is done its work, run the following command to bring the nodes back up:

docker-compose start

Check if the network is working

In order to verify that the network is up and running, you can connect to Corda SSH service.

First of all, run docker-compose ps and get the host mapping of PartyA containers port 12222. When you have that value, you can connect to it using a SSH client:

ssh user1@localhost -p <PartyA SSH port>
Password authentication
Password: 


Welcome to the Corda interactive shell.
Useful commands include 'help' to see what is available, and 'bye' to shut down the node.

Mon Sep 02 00:54:53 GMT 2019>>> run networkMapSnapshot

Please note you can lookup/change the password in the Party*_node.conf file.

corda-quickstart's People

Contributors

kepalas avatar

Watchers

 avatar  avatar  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.