-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# Shardeum Network Monitoring Project | ||
|
||
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. | ||
|
||
![Shardeum network status](https://res.cloudinary.com/kennyy/image/upload/v1716044789/CleanShot_2024-05-18_at_19.05.34_2x_kliwxi.png) | ||
|
||
|
||
### Prerequisites. | ||
* To get started, ensure you have `Node.js` installed preferably v18+ | ||
* Adhere to the requirements of each submodule (frontend & backend) | ||
|
||
### Installation | ||
|
||
#### Clone the Network Status Repository. | ||
|
||
First, clone the Shardeum network status repository to your local machine. | ||
|
||
|
||
``` | ||
git clone https://github.com/shardeum/network-status.git | ||
``` | ||
|
||
#### Install the required dependencies for the frontend and backend: | ||
For the backend, | ||
|
||
```bash | ||
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: | ||
|
||
```bash | ||
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](https://github.com/shardeum/network-status/tree/main/backend#run-prometheus) | ||
> | ||
For the frontend project, change directory into the frontend directory and install the dependencies. | ||
|
||
```bash | ||
cd .. | ||
cd frontend | ||
npm i | ||
``` | ||
Start the frontend server by running the following command: | ||
|
||
```bash | ||
npm run dev | ||
``` | ||
|
||
This will start the local development server for the frontend project on port `3000` (or your locally specified port). |