Skip to content
This repository has been archived by the owner on Aug 13, 2019. It is now read-only.

Latest commit

 

History

History
40 lines (27 loc) · 1.27 KB

README.md

File metadata and controls

40 lines (27 loc) · 1.27 KB

GPL License #Bitsharesblocks backend

Repo for the source code of the backend behind https://www.bitsharesblocks.com

##Setup Clone into your directory of choice, then do "npm install" in each of the subdirectories.

There are four scripts that run independently:

  • Blocks related collections
  • Delegates related collections
  • Assets related collections
  • Api server

The scripts communicate via redis, so you need to do "apt-get install redis-server"

Mongodb must be installed and running

npm install -g forever
npm install -g nodemon

Two collections must be initialized manually in a mongo shell for performance reasons:

db.createCollection( "ranksHistory", { capped: true, size: 150000000 } )
db.createCollection( "votesSum", { capped: true, size: 150000000 } );

##Use Launch each collection script independently with "npm start"

At first launch, start with the blocks script as a lot of the other functions depend on the blocks database. On first launch you might see errors due to missing data, but it should sort itself out once all the different functions have run.

Under Ubuntu I recommend Robomongo to view the mongo collections.