flosight-api/server
2017-08-25 17:27:15 -04:00
..
config sync & async saving. Bleh 2017-08-25 10:47:03 -04:00
lib Better input handling. Huge increase in performance and accuracy. 2017-08-25 17:27:15 -04:00
logs Add 'server/' from commit 'eb7e5d10c97aafa302dfd4e7fd67a6bc2938c0a1' 2017-08-10 17:08:14 -04:00
models Reliably update inputs. Self-healing. Audit Mongo blockheights 2017-08-24 14:28:21 -04:00
public merge mongo changes 2017-08-19 20:59:37 -04:00
test Add 'server/' from commit 'eb7e5d10c97aafa302dfd4e7fd67a6bc2938c0a1' 2017-08-10 17:08:14 -04:00
.eslintrc.json Clean up eslint complaints 2017-08-16 14:13:18 -04:00
.gitignore Add 'server/' from commit 'eb7e5d10c97aafa302dfd4e7fd67a6bc2938c0a1' 2017-08-10 17:08:14 -04:00
index.js Reset Bcoin chain if blocks are missing from mongo. 2017-08-24 14:42:50 -04:00
package.json helmet and static expires header 2017-08-22 01:44:51 -04:00
README.md Remove console logs. Fix cors 2017-08-10 23:05:48 -04:00

Bitcore - Bcoin - Insight

Rebuilt Bitcore with Bcoin engine and Insight API sitting on top of Mongo.

Requirements

Mongodb running on your system.

node >=7.6.0 - This requirement comes from Bcoin. Developed under 8.2.0.

Usage

npm install
npm start

A Full Bcoin node will start in console.

http://localhost:3000

Configuration

A configuration object exists in /config/index.js

Bcoin accepts a config object per Bcoin docs. Same for Mongo/Mongoose

Resetting Application State

mongo
use bitcore
db.blocks.drop()
db.transactions.drop()

Ctrl+D out of mongo

rm -rf ${bcoin-prefix-in-config.js}/chain.ldb

Contributing

  1. Fork
  2. Branch
  3. Send a PR