Skip to content

debris/eth-exchange

Repository files navigation

eth-exchange poc implementation

Build Status Coverage Status

Prerequisites

  • node
  • npm
  • mongodb
  • cpp-ethereum (from this branch, it's not yet compatible with ethereum poc8 network)

Installation

Addendum for ArchLinux

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.

General Installation Command

git clone https://github.com/debris/eth-exchange
cd eth-exchange
npm install

Run

Running in ArchLinux

# 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

Running in Debian based distros / Macosx

# 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

Configuration

Exchange configuration can be found in config/config.js.

Setting admin

You can give admin privilages to user by using scipts/nominateAdmin.js script.

mongo eth-exchange-develop scripts/nominateAdmin.js
npm start

Reseting exchange state

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

Debug

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published