{"id":20905932,"url":"https://github.com/ddnlink/ddn-starter","last_synced_at":"2025-03-12T21:28:43.822Z","repository":{"id":65650685,"uuid":"240882312","full_name":"ddnlink/ddn-starter","owner":"ddnlink","description":"DDN testnet for starter","archived":false,"fork":false,"pushed_at":"2024-01-23T06:15:19.000Z","size":655,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-19T14:21:57.502Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ddnlink.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-16T11:50:06.000Z","updated_at":"2021-12-09T08:46:11.000Z","dependencies_parsed_at":"2024-11-18T13:33:27.836Z","dependency_job_id":"411ee916-b2d6-4ff3-9193-18fbb050db18","html_url":"https://github.com/ddnlink/ddn-starter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddnlink%2Fddn-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddnlink%2Fddn-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddnlink%2Fddn-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddnlink%2Fddn-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ddnlink","download_url":"https://codeload.github.com/ddnlink/ddn-starter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243297136,"owners_count":20268719,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-18T13:28:16.023Z","updated_at":"2025-03-12T21:28:43.794Z","avatar_url":"https://github.com/ddnlink.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[中文版](./README-zh-CN.md) | [English](./README.md)\n\n# DDN\n\nDDN, Data Delivery Network, is next generation blockchain system.\n\nMore infomation please visit our [official website](https://www.ddn.link) or [ddn-docs](https://github.com/ddnlink/ddn-docs)\n\n## System Dependency\n\n- nodejs v10+\n- npm 5.3+\n- node-gyp v3.6.2+ \n- sqlite v4.0.0+\n- mysql 5.0+\n- g++\n- libssl\n\n## Installation for ubuntu 16.04.x or higher\n\nDevelopment\n\n```\n# Update\napt update\n\n# Install dependency package\nsudo apt-get install curl sqlite3 ntp wget git libssl-dev openssl make gcc g++ autoconf automake python build-essential libtool libtool-bin ibsqlite3-dev -y\n```\n\n## Install Node\n\n```\n# Install nvm\ncurl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash\n# This loads nvm\nexport NVM_DIR=\"$HOME/.nvm\"\n[ -s \"$NVM_DIR/nvm.sh\" ] \u0026\u0026 \\. \"$NVM_DIR/nvm.sh\" \n[ -s \"$NVM_DIR/bash_completion\" ] \u0026\u0026 \\. \"$NVM_DIR/bash_completion\"  # This loads nvm bash_completion\n\n# Install node and npm for current user.\nnvm install node 10.21.0\n# check node version and it should be v10.x.x\nnode --version\n```\n\n## Install DDN peer (Development)\n\n```\n# git clone sourece code\ngit clone https://github.com/ddnlink/ddn-starter.git \u0026\u0026 cd ddn-starter \n\n# Install node packages\nnpm install --production \n\n# config\n$ chmod u+x ddnd \u0026\u0026 ./ddnd configure\n\n# start\n$ ./ddnd start  // 或者使用 `node app.js`， 使用 ./ddnd status 查看运行状态\n```\n\n## Installation for Mac 10.01.x or higher\n\n```\n# Install dependency package\nbrew install curl sqlite3 ntp wget git libssl-dev openssl make gcc g++ autoconf libtool libtool-bin -y\n\n# Install nvm\ncurl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash\n# This loads nvm\nexport NVM_DIR=\"$HOME/.nvm\"\n[ -s \"$NVM_DIR/nvm.sh\" ] \u0026\u0026 \\. \"$NVM_DIR/nvm.sh\" \n[ -s \"$NVM_DIR/bash_completion\" ] \u0026\u0026 \\. \"$NVM_DIR/bash_completion\"  # This loads nvm bash_completion\n\n# Install node and npm for current user.\nnvm install node 10\n# check node version and it should be v10.x.x\nnode --version\n\n# git clone sourece code\ngit clone https://github.com/ddnlink/ddn-starter.git \u0026\u0026 cd ddn-starter \u0026\u0026 chmod u+x ddnd\n\n# Install node packages\nnpm install --production\n```\n\n## Install for Windows with docker\n\nIf you are a Dapp Developer, you can install DDN peer on your Linux or Mac\n\n```\n# build DDN image\n$ docker build -t ddnlink/ddn:v3.5.0 .\n\n# or pull\n$ docker pull ddnlink/ddn:v3.5.0\n```\n\n```\n# run docker\n$docker run -it --name ddn -p 8001:8001 ddnlink/ddn:v3.5.0 /bin/bash\n```\n\n```\n# run DDN\nroot@e149b6732a48:/ddn# ./ddnd start\nDDN server is running ...\n```\n\n## Run \n\n```\ncd DDN \u0026\u0026 yarn start // or npm start\nor\ncd DDN \u0026\u0026 ./ddnd start\n```\n\n## Usage\n\n```\nnode app.js --help\n\n  Usage: app [options]\n\n  Options:\n\n    -h, --help                 output usage information\n    -V, --version              output the version number\n    -c, --config \u003cpath\u003e        Config file path\n    -p, --port \u003cport\u003e          Listening port number\n    -a, --address \u003cip\u003e         Listening host name or ip\n    -b, --blockchain \u003cpath\u003e    Blockchain db path\n    -g, --genesisblock \u003cpath\u003e  Genesisblock path\n    -x, --peers [peers...]     Peers list\n    -l, --log \u003clevel\u003e          Log level\n    -d, --daemon               Run DDN node as daemon\n    --reindex                  Reindex blockchain\n    --base \u003cdir\u003e               Base directory\n```\n\n\n## Test\n\nStart server firstly.\n```\ncd DDN \u0026\u0026 yarn start\n```\n\nThen, test\n```\n$ yarn test\n```\n\n## Releated projects\n\n- [ddn-docs](https://github.com/ddnlink/ddn-docs)\n- [ddn](https://github.com/ddnlink/ddn)\n- [js-sdk](https://github.com/ddnlink/ddn/packages/js-sdk)\n- [node-sdk](https://github.com/ddnlink/node-sdk)\n- [ddn-explorer] website: [ddn.link](http://mainnet.ddn.link)\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2016-2019 DDN.link. All rights reserved. See License.txt in the project root for license information.\n\n\ndocker run --rm -p 8001:8001 verb/socat TCP-LISTEN:8001,fork TCP-CONNECT:172.17.0.2:8001","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fddnlink%2Fddn-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fddnlink%2Fddn-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fddnlink%2Fddn-starter/lists"}