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.
spacePledged
data from the Autonomys blockchain every second.Fork the Repository on GitHub:
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
Navigate to the Project Directory:
cd autonomys-space-race-plotometer
Initialize npm:
If a package.json
file isn't already present, initialize npm:
npm init -y
Install Required Packages:
npm install express @autonomys/auto-consensus @autonomys/auto-utils
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.
Run the Express Server:
npm start
You should see:
Server running at http://localhost:3000
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.
Your project directory should look like this:
autonomys-space-race-plotometer/
├── server.js
├── package.json
└── public/
└── index.html
server.js
: The Express server file.package.json
: Contains project metadata and dependencies.public/index.html
: The main HTML file for the front-end.--