Skip to content
Denarius Statistics in NodeJS - https://denarius.host
CSS JavaScript HTML Dockerfile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vs
controllers
public
test
views
.dockerignore
.env.example
.gitignore
.travis.yml
Dockerfile
LICENSE
README.md
app.js
docker-compose.yml
package-lock.json
package.json
yarn.lock

README.md

Denarius [DNR] NodeJS Statistics

Dependency Status Build Status Join the chat at https://gitter.im/denariusproject/Lobby Thinkful Pair on Node

Live Demo: https://denarius.host

Denarius Node Statistics - NodeJS powered denariusd Stats.

View tons of Denarius related statistics including the current number of masternodes online in the Denarius network.

Table of Contents

Features

  • View denariusd statistics
  • View coinmarketcap statistics for DNR

-More features will be coming!

Prerequisites

  • denariusd
  • Node.js 6.0+
  • Command Line Tools (Optional)
  •  Mac OS X: Xcode (or OS X 10.9+: xcode-select --install)
  •  Windows: Visual Studio
  •  Ubuntu /  Linux Mint: sudo apt-get install build-essential
  •  Fedora: sudo dnf groupinstall "Development Tools"
  •  OpenSUSE: sudo zypper install --type pattern devel_basis

Getting Started

The easiest way to get started is to clone the repository:

# Get the latest snapshot
git clone --depth=1 https://github.com/carsenk/denariusstats.git denariusstats

# Change directory
cd denariusstats

# Install NPM dependencies
npm install

# Or, if you prefer to use `yarn` instead of `npm`
yarn install

# Then simply start your app
node app.js

# Or, if you are using nodemon
nodemon app.js

Note: I highly recommend installing Nodemon. It watches for any changes in your node.js app and automatically restarts the server. Once installed, instead of node app.js use nodemon app.js. It will save you a lot of time in the long run, because you won't need to manually restart the server each time you make a small change in code. To install, run sudo npm install -g nodemon.

Denarius Daemon Setup

You must have a Denarius daemon running on a local server or remote server (highly recommend using SSL)

Your configuration options should be set within your .env file, you can check the .env.example for examples

In your denarius.conf file (The Denariusd/QT configuration file) add the following to allow use of the stats.

server=1
rpcuser=yourusername
rpcpassword=yourpassword

License

The MIT License (MIT)

Copyright (c) 2018 Carsen Klock

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

You can’t perform that action at this time.