-
Clone this repo.
-
Install dependencies using
npm install
. -
Configure
src/cfg.json
.-
Set the
"geteway"
and"apiServer"
parameters for IPFS:"IPFS": { "geatway": "https://ipfs.infura.io", "apiServer": "https://ipfs.infura.io:5001" },
-
Set the Web3 fallback provider (in case of local provider type
http://localhost:7455
or any other address):"WEB3": { "http": "https://rinkeby.infura.io/API_KEY" },
-
Set the Ethereum network id (1 – mainnet, 4 – rinkeby, * – any network).
... "network": "4", ...
-
Set the TCR of TCRs
Registry
contract address:"TCRofTCRs": { "registry": "YOUR_CONTRACT_ADDRESS" }
By the end, you should get the following config:
{ "IPFS": { "geatway": "https://ipfs.infura.io", "apiServer": "https://ipfs.infura.io:5001" }, "WEB3": { "http": "https://rinkeby.infura.io/API_KEY" }, "network": "4", "TCRofTCRs": { "registry": "YOUR_CONTRACT_ADDRESS" } }
-
-
Run
npm start
to start the development server.
ethereum-tcr-ui is completely compatible with Ganache (TestRPC) client and it can be used as any other network. In order to check the Ganache deploying process of TCR, please refer to oficial TCR repo and Ganache CLI repo
public/index.html
is the page template;src/index.js
is the JavaScript entry point.src/cfg.json
is the core cinfiguration file.src/defaultConfig.json
an example ofTCR of TCRs
IPFS config.src/defaultLocalization.json
default/fallback localization file.
To completely install all dependencies via npm install
you have to add an SSH key of the machine you're working on in order to pull a ethereum-tcr-api package.
Copyright 2018 DApp DEV Consulting
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.