Coder Social home page Coder Social logo

mariusg91 / webdollar-explorer-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thelazyprogrammer/webdollar-explorer-api

0.0 0.0 0.0 7.18 MB

Easy to deploy explorer (web client + REST api server) for WebDollar

Home Page: https://webdollar.network

License: Apache License 2.0

JavaScript 46.58% HTML 0.48% Vue 48.98% CSS 3.84% Shell 0.11%

webdollar-explorer-api's Introduction

WebDollar Blockchain Explorer Build Status

This project allows to deploy a complete, scalable and fast service to access WebDollar.io blockchain.

WebDollar Blockchain Explorer Architecture v1

webdollar network

Deploy WebDollar Blockchain Explorer

1. Install Ubuntu 16.04 or 18.04

2. sudo apt update && sudo apt upgrade

3. Install nodejs (long term support version) and mongodb:

sudo apt update

sudo dpkg --add-architecture i386
sudo apt install -y build-essential linuxbrew-wrapper erlang libssl-dev:i386

# install nvm
curl -sL https://raw.githubusercontent.com/creationix/nvm/v0.31.0/install.sh -o install_nvm.sh
bash install_nvm.sh
source ~/.profile

# install nodejs
nvm install v8.12.0
# hack to use the latest lts
nvm install v8.12.0

# install mongodb
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
release=$(lsb_release -a 2>/dev/null | grep Codename | awk  '{print $2}')

echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu ${release}/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list

sudo apt update
sudo apt-get install -y mongodb-org
sudo service mongod start
sudo systemctl enable mongod

4. Clone Node-WebDollar

git clone https://github.com/WebDollar/Node-WebDollar.git
cd Node-WebDollar
git remote add lazy https://github.com/thelazyprogrammer/Node-WebDollar.git
git fetch lazy
git cherry-pick 5264fe57bb708018ba93a1013179ba3bbe224b04
npm install

5. Start WebDollar Syncer on port 3333

screen 
SERVER_PORT=3333 npm run start
# press ctrl + a and then d, to detach from screen
# screen -ls -> view screen_host
# screen -r screen_host <- connect to the screen

6. Deploy REST API and dashboard

git clone https://github.com/thelazyprogrammer/webdollar-explorer-api.git

7. Start REST API on port 3000

cd webdollar-explorer-api/server
npm install
npm install -g forever
# if you want to start the REST API on other port,
# modify the port here: webdollar-explorer-api/server/config.js
# set config.server.port = YOUR_REST_API_PORT
npm run start
# you should seee a forever process
# forever list

9. Start Explorer Dashboard on port 10001

pushd client
npm install
npm run dev

webdollar-explorer-api's People

Contributors

lazyprogrammerio avatar ader1990 avatar ionutalexandrupanait avatar morion4000 avatar adrianmai avatar valentinvladimir avatar cbusuioceanu 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.