flosight-api/server
2017-08-16 16:31:57 -04:00
..
config Moved db configs to config file. Dropped time from log files. Simple commenting 2017-08-16 00:52:11 -04:00
lib This adds some basic regex validation on query parameters to harden against attacks and reduce time to error. Address validation could likely be improved beyond just regex, but this will do for now 2017-08-16 16:31:57 -04:00
logs Add 'server/' from commit 'eb7e5d10c97aafa302dfd4e7fd67a6bc2938c0a1' 2017-08-10 17:08:14 -04:00
models All API but tx & socket cleaned up, blocks db api done 2017-08-15 23:14:24 -04:00
public Fix Coinbase in blocks and address. Remove console log from compiled js (removed from temp previousl) 2017-08-16 12:49: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 Clean up eslint complaints 2017-08-16 14:13:18 -04:00
package.json Message verification and bitcore-message added 2017-08-15 20:29:38 -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