ebookcoin 安装与入门

翻译自 github地址:https://github.com/Ebookcoin/ebookcoin/tree/v0.1.3

亿书:加密货币驱动的电子书写作和版权保护应用。源码解析与开发指南:《Nodejs开发加密货币》

Ebookcoin is a decentralized application for eBook-writing and copyright-protection powered by the next-generation Crypto Currency. For more information please refer to our website: http://ebookchain.org/.

1. Installation

NOTE: The following is applicable to: Ubuntu 14.04 (LTS) - x86_64.

  • 要求要在14.04,但是我的虚拟机安装的是12.04所以有些地方可能会出BUG,会在下面的命令行给出修正措施。
    Install essentials:

更新源

sudo apt-get update
sudo apt-get install curl build-essential python

安装SQLite3 (version 3.8.2)

apt-get install -y sqlite3

安装 Node.js (version 0.12.x) + npm:

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.0/install.sh | bash
nvm install 0.12.14

Install grunt-cli (globally):

npm install grunt-cli -g

Install bower (globally):

  • 这里在Ubuntu12.04可能会出错,解决方法是先执行命令语句Git config --global url."https://github.com".insteadOf git://github.com
npm install bower -g

Install node modules:

npm install

Load git submodules (client and ebookcoin-js),Error: Permission denied (publickey)?:

git submodule init
git submodule update

Build the user-interface:

cd public
npm install
bower install
grunt release

2. Launch

To launch Ebookcoin:

node app.js

NOTE: The port, address and config-path can be overridden by providing the relevant command switch:

node app.js -p [port] -a [address] -c [config-path]

3. Tests

Before running any tests, please ensure Ebookcoin is configured to run on a local testnet (this is the default), and not the mainnet.

Install mocha (globally):

npm install mocha -g

Run the test suite:

npm test

Run individual tests:

mocha test/lib/accounts.js
mocha test/lib/transactions.js
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值