https://github.com/renproject/command-center
Ren Command Center
https://github.com/renproject/command-center
dapp darknodes ren typescript web3
Last synced: about 1 year ago
JSON representation
Ren Command Center
- Host: GitHub
- URL: https://github.com/renproject/command-center
- Owner: renproject
- License: gpl-3.0
- Created: 2018-11-27T23:18:53.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-02-04T21:33:01.000Z (over 3 years ago)
- Last Synced: 2023-03-02T04:22:03.420Z (over 3 years ago)
- Topics: dapp, darknodes, ren, typescript, web3
- Language: TypeScript
- Homepage: https://mainnet.renproject.io
- Size: 43.9 MB
- Stars: 16
- Watchers: 11
- Forks: 15
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `🎛️ Command Center`
* Mainnet:
* Testnet:
The Command Center is a dashboard for seeing RenVM stats and for operating darknodes. It should be used along side the [Darknode CLI](https://github.com/renproject/darknode-cli).
For instructions on running a darknode, see .
## Previews
Network stats

Darknode page

## Developer notes
### Project
The project is structured into [`components`](./src/components), [`store`](./src/store) and [`lib`](./src/lib).
The library (`lib`) files of note are:
* [`contractReads.ts`](./src/lib/ethereum/contractReads.ts)
* [`contractWrites.ts`](./src/lib/ethereum/contractWrites.ts)
### Running locally
After cloning, run:
```sh
yarn
yarn start
```
To configure the network or add an Infura key, create a `.env` file:
```sh
REACT_APP_INFURA_KEY="" # Optional
REACT_APP_NETWORK="mainnet" # Options are "testnet" (default) or "mainnet"
```
If you don't have an Infura key (Project ID), you should make sure to connect your Web3 wallet when the page is loaded. You may see some errors until the wallet is connected. A free Infura key can generated at [https://infura.io](https://infura.io/).
### Tests
(see [CircleCI config](./.circleci/config.yml) for more details)
In one terminal, start a local Ethereum node by running:
```bash
cd ./node_modules/darknode-sol
yarn install
(yarn ganache-cli -d > /dev/null &)
sleep 5
yarn truffle migrate
```
In another, run:
```bash
yarn run test
```