From 9f7a75bbb98e10a567b18edbe8e313133464d6a1 Mon Sep 17 00:00:00 2001 From: Hyun Seungmin Date: Tue, 14 May 2024 10:44:30 +0900 Subject: [PATCH] improve README --- README.md | 35 +++++++++++++++++++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 56f55ce..1db2851 100644 --- a/README.md +++ b/README.md @@ -6,23 +6,54 @@ A web application to provide useful tools. You can access it in https://planetar ## Devlopment +### Configure Environment + +- Create `.env` file to project root directory. + +``` +# Set network config map e.g., +NETWORK_CONF_MAP="odin=http://9c-main-rpc-1.nine-chronicles.com/graphql,heimdall=http://heimdall-rpc-1.nine-chronicles.com/graphql" +``` + +### Run + ``` +yarn install +yarn codegen yarn dev ``` ## Features +### Planets & Networks + +NineChronicle's blockchain network is divided into planets, which can be found below. +- main network: https://planets.nine-chronicles.com/planets +- internal network: https://planets-internal.nine-chronicles.com/planets + +As you can see above, NineChronicle's planets are divided into main and internal networks for deployment purposes. +Therefore, each of the features provided here must be used separately for each planet and network. + +This is a common way to determine what goes into the '[NETWORK]' location in the URL of a feature, which we'll discuss below. + +||main|internal| +|:-:|:-:|:-:| +|odin|odin|odin-internal| +|heimdall|heimdall|heimdall-internal| + +And since this information is tied to the `NETWORK_CONF_MAP` value you define in your `.env` file, you can change it. + ### Show tablesheet in web `https://planetarium-9c-board.netlify.app/[NETWORK]/tablesheet/[TABLESHEET_NAME]` -For instance, you can see current `StakeRegularRewardSheet` of `mainnet` network in `https://planetarium-9c-board.netlify.app/9c-main/tablesheet/StakeRegularRewardSheet`. +For instance, you can see current `StakeRegularRewardSheet` of `odin`-`mainnet` network in `https://planetarium-9c-board.netlify.app/odin/tablesheet/StakeRegularRewardSheet`. image ### Show avatar in web -`https://planetarium-9c-board.netlify.app/avatar/[AVATAR_ADDRESS]?` +`https://planetarium-9c-board.netlify.app/[NETWORK]/avatar/[AVATAR_ADDRESS]?` You can see some avatar state in web.