Git Product home page Git Product logo

adultchain-explorer's Introduction

Adultchain Logo

Adultchain cryptocurrency block explorer. Forked from the bulwark explorer.

GitHub license Build Status

Install

This installation procedure will install everything that is needed to run the AdultChain blockexplorer software.

Nginx, Mongodb, Nodejs, Yarn, the AdultChain daemon and CLI and the block explorer. Firewall configuration, creation of swap disk, installation of cron jobs and configuration of the explorer client application.

This repo has only been tested on a Ubuntu 16.04 VPS

To start, run the following command from your Ubuntu server to clone the repository to a local folder:

git clone https://github.com/Cryptokkie/adultchain-explorer.git

The following command will execute the script that installs the packages and programs that are needed:

bash script/install_adultchain.sh

When the script is done, navigate to the directory containg the files from the client application, and install the node packages:

cd /home/explorer/blockex
yarn install

SSL

To install a Let's encrypt certificate the instructions in the following guide were followed: https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-16-04

Configuration

Configuration should be good to go, but if you need to tweak something, edit the file config.js

Crontab

The following automated tasks are needed for BlockEx to update:

  • yarn run cron:coin - will fetch coin related information like price and supply from coinmarketcap.com.
  • yarn run cron:masternode - updates the masternodes list in the database with the most recent information clearing old information before.
  • yarn run cron:peer - gather the list of peers and fetch geographical IP information.
  • yarn run cron:block - will sync blocks and transactions by storing them in the database.
  • yarn run cron:rich - generate the rich list.

Note: is is recommended to run all the crons before editing the crontab to have the information right away. Follow the order above, start with cron:coin and end with cron:rich.

Build (production)

At this time only the client web interface needs to be built using webpack. This can be done by running:

yarn run build:web

This will bundle the application and put it in the /public folder for delivery.

Run (development)

yarn run start:api - start the api.

yarn run start:web - start client, URL: http://localhost:8081.

Test

yarn run test:client - run the client side tests.

yarn run test:server - test the rpc connection, database connection, and api endpoints.

To-Do

  • Write more tests
  • Cluster support for api

adultchain-explorer's People

Contributors

dustinengle avatar rustigano avatar dummyuser avatar ff899f avatar kaneohunter avatar raikzer avatar lyght1337 avatar admecoin avatar bigalan09 avatar penple03 avatar imprecation avatar u74r0 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.