From 9f0928544ee4fdf5558a0fcfae5eca981a8c41eb Mon Sep 17 00:00:00 2001 From: kenny-io Date: Thu, 15 Aug 2024 18:56:16 +0400 Subject: [PATCH] add readme file --- README.md | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..4d0b93d --- /dev/null +++ b/README.md @@ -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). \ No newline at end of file