This repository provides a REPL environment that enables easy testing of
libplanet features.
dotnet 8.0
c# 12.0
git clone https://github.com/s2quake/libplanet-console.git
cd libplanet-consoledotnet publishIt's
publish, not build.
Run the following command to create a repository for starting 4 nodes and 2 clients at the specified path.
.bin/libplanet-console init .dataRun the following command to start nodes and clients at the specified path.
.bin/libplanet-console start .dataIf platform is windows, run
.bin\libplanet-console.exe.
Create and run a repository for a single node.
.bin/libplanet-node init .node --single-node
.bin/libplanet-node start .nodeOnce 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"
}
}
}
}Run the following command to display help
.bin/libplanet-console --help