- node
- npm
- mongodb
- cpp-ethereum (from this branch, it's not yet compatible with ethereum poc8 network)
Make sure you have node.js and mongodb. You can get them via pacman with
sudo pacman -S nodejs mongodb
If you are getting problems at npm install
due to gyp
then use:
npm config set python /usr/bin/python2.7 -g
This way npm (and gyp) will know which version of python to use and not use python 3 which is the ArchLinux default.
git clone https://github.com/debris/eth-exchange
cd eth-exchange
npm install
# start ethereum with json-rpc server
# by default port 8080
eth -j
# make sure mongodb is running
sudo systemctl start mongodb.service
# start eth-exchange
# by default port 2000, configurable in config.js
npm start
# start ethereum with json-rpc server
# by default port 8080
eth -j
# start mongodb
mongod
# start eth-exchange
# by default port 2000, configurable in config.js
npm start
Exchange configuration can be found in config/config.js.
You can give admin privilages to user by using scipts/nominateAdmin.js script.
mongo eth-exchange-develop scripts/nominateAdmin.js
npm start
At any moment you can reset exchange state and force it to recreate it's state
mongo eth-exchange-develop scripts/resetHistory.js
npm start
You can debug node app using node-inspector
# install node-inspector globally
npm install -g node-inspector
# start node-inspector at port 7000
node-debug -p 7000 bin/www