Grid Stats is a web application created to replace explorer.threefold.io with a simple page showing a capacity map + statistics. In the map, you get to see node distribution with each node location highlighted. While in Statistics section, general details about the nodes are being displayed like online nodes, farms count, total storage used, gateways ...etc. Also, you can select one or more networks to get their stats.
-
Prerequisite
- Nodejs 18^
-
Clone the repository
git clone https://github.com/threefoldtech/tfgrid-sdk-ts.git
Install the dependencies...
Before running the Grid Stats, in your terminal move to the project directory, then install the required dependencies using
cd tfgrid-sdk-ts
yarn install
You can now run the project in development mode using
yarn workspace @threefold/stats dev
To create an optimised version of the app:
yarn workspace @threefold/stats build
This will generate the production build in the dist directory, which can be served using Caddy or NGINX