EmilFattakhov / space-race-plot-o-meter

0 stars 2 forks source link

Autonomys Network Space Race Plot-O-Meter

Welcome to the Autonomys Network Space Race Plot-O-Meter project! This application displays real-time blockchain data in a visually engaging thermometer, ranging from 0 PiB to 20 PiB, using Auto SDK, JavaScript and pure CSS.

Prerequisites

Features


Getting Started

Forking the Repository

  1. Fork the Repository on GitHub:

    • Navigate to the original repository on GitHub.
    • Click on the Fork button at the top-right corner of the page.
    • This will create a copy of the repository under your GitHub account.

Cloning the Repository

  1. Clone Your Forked Repository:

    Open your terminal or command prompt and run the following command, replacing <your-username> with your GitHub username:

    git clone https://github.com/<your-username>/autonomys-space-race-plotometer.git
  2. Navigate to the Project Directory:

    cd autonomys-space-race-plotometer

Installing Dependencies

  1. Initialize npm:

    If a package.json file isn't already present, initialize npm:

    npm init -y
  2. Install Required Packages:

    npm install express @autonomys/auto-consensus @autonomys/auto-utils
  3. Update package.json:

    Ensure your package.json includes the following:

    {
     "name": "autonomys-space-race-plotometer",
     "version": "1.0.0",
     "description": "Autonomys Network Space Race Plot-O-Meter",
     "main": "server.js",
     "type": "module",
     "scripts": {
       "start": "node server.js"
     },
     "dependencies": {
       "express": "^4.17.1",
       "@autonomys/auto-consensus": "^1.0.0",
       "@autonomys/auto-utils": "^1.0.0"
     }
    }

    Adjust versions as necessary.

Starting the Server

  1. Run the Express Server:

    npm start

    You should see:

    Server running at http://localhost:3000

Usage

  1. Access the Application:

    Open your web browser and navigate to:

    http://localhost:3000/

    You should see the Autonomys Network Space Race Plot-O-Meter displaying real-time data with dynamic visuals.


Project Structure

Your project directory should look like this:

autonomys-space-race-plotometer/
├── server.js
├── package.json
└── public/
    └── index.html

--