Giter VIP home page Giter VIP logo

dcrextdata's Introduction

dcrextdata

Build Status Go Report Card ISC License

dcrextdata is a standalone program for collecting additional info about the decred cryptocurrency like ticker and orderbook data from various exchanges. 

Requirements

To run dcrextdata on your machine you will need the following to be setup.

  • Go 1.11
  • Postgresql
  • Yarn
  • Nodejs
  • Dcrd

Setting Up Dcrextdata

Step 1. Installations

Install Go

  • Minimum supported version is 1.11.4. Installation instructions can be found here.
  • Set $GOPATH environment variable and add $GOPATH/bin to your PATH environment variable as part of the go installation process.

Install Postgrsql

  • Postgrsql is a relational DBMS used for data storage. Download and installation guide can be found here

  • Quick start for Postgresql

    If you have a new postgresql install and you want a quick setup for dcrextdata, you can start postgresql command-line client(It comes with the installation) with...

    Linux

    • sudo -u postgres psql or you could su into the postgres user and run psql then execute the sql statements below to create a user and database.

    Windows

    • Just open the command line interface and type psql then execute the sql statements below to create a user and database.
    CREATE USER {username} WITH PASSWORD '{password}' CREATEDB;
    CREATE DATABASE {databasename} OWNER {user};

Install Nodejs

  • Instructions on how to install Nodejs can be found here

Install Yarn

  • Yarn is a package used for building the http frontend You can get yarn from here

Install Dcrd

  • Running dcrd synchronized to the current best block on the network.
  • Download the decred release binaries for your operating system from here. Check under Assets.
  • The binary contains other decred packages for connecting to the decred network.
  • Extract dcrd Only, go here to learn how to setup and run decred binaries.

Step 2. Getting the source code

  • Clone the dcrextdata repository. It is conventional to put it under GOPATH, but this is no longer necessary with go module.

Linux

  git clone https://github.com/raedahgroup/dcrextdata $GOPATH/src/github.com/raedahgroup/dcrextdata

Windows

  git clone https://github.com/raedahgroup/dcrextdata %GOPATH%/src/github.com/raedahgroup/dcrextdata

Step 3. Building the source code.

  • If you cloned to $GOPATH, set the GO111MODULE=on environment variable before building. Run export GO111MODULE=on in terminal (for Mac/Linux) or setx GO111MODULE on in command prompt for Windows.
  • cd to the cloned project directory and run go build or go install. Building will place the dcrextdata binary in your working directory while install will place the binary in $GOPATH/bin.

Building http front-end

  • From your project directory, type cd web/public/app using command line, rn yarn install when its done installing packages, run yarn build.

Step 4. Configuration

dcrextdata can be configured via command-line options or a config file located in the same diretcory as the executable. Start with the sample config file:

cp sample-dcrextdata.conf dcrextdata.conf

Then edit dcrextdata.conf with your postgres settings. See the output of dcrextdata --help for a list of all options and their default values.

Running dcrextdata

To run dcrextdata, use...

  • dcrextdata on your command line interface to create database table, fetch data and store the data.
  • dcrextdata --http on your command line interface to launch the http web user interface/front-end.
  • You can perform a reset by running with the -R or --reset flag.
  • Run dcrextdata -h or dcrextdata help to get general information of commands and options that can be issued on the cli.
  • Use dcrextdata <command> -h or dcrextdata help <command> to get detailed information about a command.

Contributing

See the CONTRIBUTING.md file for details. Here's an overview:

  1. Fork this repo to your github account
  2. Before starting any work, ensure the master branch of your forked repo is even with this repo's master branch
  3. Create a branch for your work (git checkout -b my-work master)
  4. Write your codes
  5. Commit and push to the newly created branch on your forked repo
  6. Create a pull request from your new branch to this repo's master branch

dcrextdata's People

Contributors

ademuanthony avatar sirmorrison avatar oluwandabira avatar raedah avatar alishaagupta avatar jujhar avatar vevsatechnologies avatar mcedward avatar damiadek avatar reevesak avatar

Watchers

James Cloos 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.