This repository is designed to monitor the status of the Shardeum Network services. It provides users with information about the health of the Shardeum network, uptime, and latency.
- To get started, ensure you have
Node.js
installed preferably v18+ - Adhere to the requirements of each submodule (frontend & backend)
The services we monitor are defined in the endpoints.json file which contains the URLs of each service along with their expected response structures.
First, clone the Shardeum network status repository to your local machine.
git clone https://github.com/shardeum/network-status.git
For the backend,
cd backend
npm i
This will install all the dependencies required for the backend project (i.e Node.js server)
To start the local development server for the backend project, run the following command:
npm start
This will start the local Node server on port 3002
(or your locally specified port).
Your Prometheus server should be running on port 9090 how to set up Prometheus
For the frontend,
Change directory into the frontend directory and install the dependencies.
cd ..
cd frontend
npm i
Next, copy over the contents of .env.example to your local .env
file in the frontend directory.
Start the frontend server by running the following command:
npm run dev
This will start the local development server for the frontend project on port 3000
(or your locally specified port).