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.
-
Prerequisite
- Nodejs 16^
-
Clone the repository
git clone https://github.com/threefoldtech/tfgrid-stats.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_stats
npm install
You can now run the project in development mode using
npm run dev
To create an optimised version of the app:
npm run build
This will generate the production build in the public
directory, which can be served using Caddy or NGINX