Skip to content

Tools for running a local ravencore development node

Notifications You must be signed in to change notification settings

RavenDevKit/devnode

Repository files navigation

Dev Kit Development Environment

Intro

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.

Instructions

  • 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 to ravencore-node.json and fill in the missing configuration:

    • servicesConfig/ravend/exec: set to the absolute path to the ravend executible you just installed.
    • servicesConfig/ravend/datadir: set to the absulute path to your devnode/data directory.
  • Copy raven.conf.template to data/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 run bin/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.

Troubleshooting

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 the ravencoin-node directory.

Extras

  • 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

About

Tools for running a local ravencore development node

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published