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.templatetoravencore-node.jsonand fill in the missing configuration:servicesConfig/ravend/exec: set to the absolute path to theravendexecutible you just installed.servicesConfig/ravend/datadir: set to the absulute path to yourdevnode/datadirectory.
-
Copy
raven.conf.templatetodata/raven.conf. -
Install and set up MongoDB for stats support
brew tap mongodb/brewbrew install mongodb-communitybrew services start mongodb-communitymongo>use raven-api-regtest>db.createUser( { user: "test", pwd: "test1234", roles: [ "readWrite" ] } )>exit
-
Make sure you're in the
devnodedirectory 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 zeromqfrom theravencoin-nodedirectory.
- 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 getblockchaininforvn generate 500rvn issue TEST 1000rvn generate 1rvn listmyassets
- Run