This project is for developers. It's purpose is to help them set up a local node where they can work on the Block Explorer and API. Some instructions may be assuming you're on a MacBook.
-
Clone the following into directories next to this one:
Your directory structure should now look like this:
├── devnode ├── insight-api ├── insight-ui └── ravencore-node
-
Go into each of the three new directories and run
npm install
. -
Install Ravencoin.
-
Copy
ravencore-node.json.template
toravencore-node.json
and fill in the missing configuration:servicesConfig/ravend/exec
: set to the absolute path to theravend
executible you just installed.servicesConfig/ravend/datadir
: set to the absulute path to yourdevnode/data
directory.
-
Copy
raven.conf.template
todata/raven.conf
. -
Install and set up MongoDB for stats support
brew tap mongodb/brew
brew install mongodb-community
brew services start mongodb-community
mongo
>use raven-api-regtest
>db.createUser( { user: "test", pwd: "test1234", roles: [ "readWrite" ] } )
>exit
-
Make sure you're in the
devnode
directory and runbin/start
. You should see some logging scroll by as the node loads up. When it's ready try out the Block Explorer and the API.
Some quirks we've come across with helpful hints that might help.
Error: Cannot find module '../build/Release/zmq.node'
:- Try running
npm install zeromq
from theravencoin-node
directory.
- Try running
- Test Data
- Run
ps ax | grep ravend
. - Copy out the entire command (with --conf, --datadir and --regtest flags).
- Replace "ravend" with "raven-cli"
- Bind it to an alias e.g.
alias rvn="/../raven-cli --conf=..."
- Use your new command to activate assets and generate test transactions:
rvn getblockchaininfo
rvn generate 500
rvn issue TEST 1000
rvn generate 1
rvn listmyassets
- Run