You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Slixe 1ed3160437
README.md
3 months ago
dero-stats update theme + framework 3 months ago
gradle/wrapper Inital commit 3 months ago
src/main Inital commit 3 months ago
README.md README.md 3 months ago
build.gradle update project name 3 months ago
gradlew Inital commit 3 months ago
gradlew.bat Inital commit 3 months ago
settings.gradle update project name 3 months ago

README.md

DERO Mining Stats

DERO Mining Stats is a simple website that track your solo mining stats in one convenient location.

The backend part uses the Paladin Framework and is made in Java.

The frontend part uses VueJS Framework and Vuetify and can be found in dero-stats folder.

Schema

Each miner is (for the moment) recognized by IP. Backend updates the job every 200ms by default (configurable: job-interval) by querying the daemon.

This way the miners get the job back from the backend and allows us to make statistics to see which miner is connected, the number of blocks found, the last query made…

How to start

To start, you will need to build the backend and frontend separately.

Backend

First, you must have a java version higher or equal to Java 8. To compile the backend, do the following command:

gradlew fatJar

The executable jar file will be found in build/libs/ folder. To execute it, all you’ll have to do is:

java -jar dero-mining-stats-1.0.1.jar

config.json file will be created once the application is launched.

Configuration

config.json

{
  "port": 8080,
  "enableSSL": false,
  "keystoreFile": "",
  "keystorePassword": "",
  "daemonURL": "https://wallet.dero.io:443",
  "walletAddress": "dERokevAZEZVJ2N7o39VH81BXBqX9ojtncnPTDMyiVbmYiTXQY93AUCLcor9xsWCKWhYy25ja89ikZWXWab9kXRB7LYfUmbQyS",
  "reserveSize": 10,
  "job-interval": 200
}

port is the port on which the application is going to listen to. daemonURL is the URL of the DERO node you want to mine. reserveSize is used by the DERO daemon. walletAddress is the DERO address where you want to mine on. job-interval is the interval in milliseconds between each request to update the job.

Enable SSL

There are two ways to enable SSL on DERO Mining Stats:

  • You can make a reverse proxy using NGINX (or another one) for example.
  • You can directly activate it in the config.json file

For the second solution, you will need to generate a Java keystore file (.jks). To create a java keystore file from an already existing certificate, please refer here

For more examples: here

once this step is done, just configure the “config.json” file.

enableSSL must be set to true if you want to activate it.

keystoreFile is the path to your file. If it is in the same folder as the application, you can simply specify the file name as above.

keystorePassword is the password needed for the keystore file.

Frontend

Yarn must be installed, if not, click here to find out how to install it.

First you will need to change the value of Vue.prototype.$api with your API address (so the IP address/domain name where your backend is running) in the src/main.js file.

Install dependencies:

yarn install

Then, to build the frontend:

yarn run build

The result will be available in the dist folder and all you have to do is move its content to a web server.

Screenshots

Some screenshots of the current design.

Dark Theme

Dark Theme

Light Theme

Light Theme

Donations

Donations are greatly appreciated and I thank you for them.

DERO:

dERokevAZEZVJ2N7o39VH81BXBqX9ojtncnPTDMyiVbmYiTXQY93AUCLcor9xsWCKWhYy25ja89ikZWXWab9kXRB7LYfUmbQyS