Skip to content

Latest commit

 

History

History
93 lines (69 loc) · 1.66 KB

README.md

File metadata and controls

93 lines (69 loc) · 1.66 KB

Libplanet Console

This repository provides a REPL environment that enables easy testing of libplanet features.

Requirements

dotnet 8.0
c# 12.0

Clone

git clone https://github.com/s2quake/libplanet-console.git
cd libplanet-console

Build

dotnet publish

It's publish, not build.

Creating Repository

Run the following command to create a repository for starting 4 nodes and 2 clients at the specified path.

.bin/libplanet-console init .data

Staring Repository

Run the following command to start nodes and clients at the specified path.

.bin/libplanet-console start .data

If platform is windows, run .bin\libplanet-console.exe.

Single Node

Create and run a repository for a single node.

.bin/libplanet-node init .node --single-node
.bin/libplanet-node start .node

Settings data

Once the repository is created, the specified path will contain appsettings.json and appsettings.json files as shown below. Users can configure various values to run nodes and clients in different environments.

{
  "$schema": "appsettings-schema.json",
  "application": {
    "privateKey": "5a3df2ce7fc8b8f7c984f867a34e7d343e974f7b661c83536c0a66685bdbf04a",
    "storePath": "store",
    "logPath": "log",
    "genesisPath": "genesis",
  },
  "Kestrel": {
    "Endpoints": {
      "Http1": {
        "Url": "http://localhost:57888",
        "Protocols": "Http2"
      },
      "Http1AndHttp2": {
        "Url": "http://localhost:57889",
        "Protocols": "Http1AndHttp2"
      }
    }
  }
}

Show Help

Run the following command to display help

.bin/libplanet-console --help