Name Last Update
.github/workflows Loading commit data...
.history Loading commit data...
app Loading commit data...
config Loading commit data...
database Loading commit data...
test/app/controller Loading commit data...
.autod.conf.js Loading commit data...
.ddnrc.js Loading commit data...
.eslintignore Loading commit data...
.eslintrc Loading commit data...
.gitignore Loading commit data...
.sequelizerc Loading commit data...
.travis.yml Loading commit data...
README.md Loading commit data...
appveyor.yml Loading commit data...
dump.rdb Loading commit data...
jsconfig.json Loading commit data...
package.json Loading commit data...

DDNTrs

DDN

QuickStart

see egg docs for more detail.

Development

$ npm i
$ npm run init
$ npm run dev
$ open http://localhost:7001/

Deploy

$ npm start
$ npm stop

npm scripts

  • Use npm run lint to check code style.
  • Use npm test to run unit test.
  • Use npm run autod to auto detect dependencies upgrade, see autod for more detail.

配置

  1. 必须提供mem_accounts.json文件在config下配置,该文件为json数组是区块链账户结构如下 { "RECORDS": [ { "username": "", "is_delegate": "0", "u_isdelegate": "0", "second_signature": "0", "u_second_signature": "0", "u_username": "", "address": "DC6exGCAR24euF8fhd9abfHKQk169udiCG", "publicKey": "41b2d3beec35225152e3daa25a489c0fb1aceecdff977b4d5fdeb8ad9df95acc", "second_public_key": "", "balance": "-1000000000000000000", "u_balance": "-1000000000000000000", "vote": "0", "rate": "0", "delegates": "", "u_delegates": "", "multisignatures": "", "u_multisignatures": "", "multimin": "0", "u_multimin": "0", "multilifetime": "0", "u_multilifetime": "0", "block_id": "6b914799f1ca868d561ddc15e96fc12aedd7e82648c4779e366c9b2b7bbff70fceb9dc3e337d11aca7f5e3e79e116e108924e6fe5eb036145713500478843456", "nameexist": "0", "u_nameexist": "0", "producedblocks": "1", "missedblocks": "0", "fees": "0", "rewards": "0", "lock_height": "0" }]} ## 数据库

本项目使用的是sqlite数据库在database目录下