Skip to content
/ ddn Public
forked from ddnlink/ddn

DDN, Data Delivery Network, a next generation blockchain system

License

Notifications You must be signed in to change notification settings

limsbase/ddn

This branch is 1103 commits behind ddnlink/ddn:master.

Folders and files

NameName
Last commit message
Last commit date
Aug 22, 2019
Aug 22, 2019
Aug 22, 2019
Aug 22, 2019
Aug 22, 2019
Aug 22, 2019
Aug 22, 2019
Sep 22, 2019
Aug 22, 2019
Sep 22, 2019
Aug 22, 2019
Aug 22, 2019
Aug 22, 2019
Aug 22, 2019
Aug 22, 2019
Aug 25, 2019
Sep 2, 2019
Aug 22, 2019
Aug 22, 2019
Aug 22, 2019
Aug 22, 2019
Aug 22, 2019
Aug 22, 2019
Aug 22, 2019
Aug 22, 2019
Sep 3, 2019
Aug 22, 2019
Sep 3, 2019

Repository files navigation

中文版 | English

DDN

DDN, Data Delivery Network, is next generation blockchain system.

More infomation please visit our official website

System Dependency

  • nodejs v8+
  • npm 5.3+
  • node-gyp v3.6.2+
  • sqlite v3.8.2+,mysql 5.0+
  • g++
  • libssl

Installation for ubuntu 16.04.x or higher

# Install dependency package
sudo apt-get install curl sqlite3 ntp wget git libssl-dev openssl make gcc g++ autoconf automake python build-essential libtool libtool-bin -y

# Install nvm
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash
# This loads nvm
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" 
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion

# Install node and npm for current user.
nvm install node 8
# check node version and it should be v8.x.x
node --version

# git clone sourece code
git clone https://github.com/ddnlink/ddn.git && cd ddn && chmod u+x ddnd

# Install node packages
npm install

Installation for Mac 10.01.x or higher

# Install dependency package
brew install curl sqlite3 ntp wget git libssl-dev openssl make gcc g++ autoconf libtool libtool-bin -y

# Install nvm
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash
# This loads nvm
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" 
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion

# Install node and npm for current user.
nvm install node 8
# check node version and it should be v8.x.x
node --version

# git clone sourece code
git clone https://github.com/ddnlink/ddn.git && cd ddn && chmod u+x ddnd

# Install node packages
npm install

Run

cd DDN && yarn start // or npm start
or
cd DDN && ./ddnd start

Usage

node app.js --help

  Usage: app [options]

  Options:

    -h, --help                 output usage information
    -V, --version              output the version number
    -c, --config <path>        Config file path
    -p, --port <port>          Listening port number
    -a, --address <ip>         Listening host name or ip
    -b, --blockchain <path>    Blockchain db path
    -g, --genesisblock <path>  Genesisblock path
    -x, --peers [peers...]     Peers list
    -l, --log <level>          Log level
    -d, --daemon               Run DDN node as daemon
    --reindex                  Reindex blockchain
    --base <dir>               Base directory

Default localnet genesis account

Note: You can replace the [*] of the address with DE...

{
  "keypair": {
    "publicKey": "2e6d978c5e6f1fbfc5a27abd964d9b6adc352daa81e31d9098a4f5ee3d7f885e",
    "privateKey": "863669059023e53d46d92b6a1a7bdaa8a9ff3555d98c07517c2a3a08c89ff9d02e6d978c5e6f1fbfc5a27abd964d9b6adc352daa81e31d9098a4f5ee3d7f885e"
  },
  "address": "[*]CE3q83WTqk58Y3hU9GDStn7MmqWU9xHbK",
  "secret": "enter boring shaft rent essence foil trick vibrant fabric quote indoor output"
}

Test

Start server firstly.

cd DDN && yarn start

Then, test

$ yarn test

Releated projects

License

The MIT License (MIT)

Copyright (c) 2016-2019 DDN.link. All rights reserved. See License.txt in the project root for license information.

About

DDN, Data Delivery Network, a next generation blockchain system

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 99.0%
  • Shell 1.0%