itp-world / blockchain-otc-dapp

MIT License
19 stars 15 forks source link

Blockchain OTC Market - Backend and web client

Setup Backend

Requirements

The following node packages or their dependencies uses native libraries:

Please take care for the dependencies of the build tool node-gyp.

Configuration

Parity

See Configuring Parity for the complete documentation.

Backend

See ./backend/config/defaults.json for the default configuration and define your custom configuration in ./config.json.

Additional resources

Development Mode

# install dependencies
$ npm install

# run setup for initial user, wallet and contracts (will skip for already existing ones)
$ npm run setup

# start server with hot reload at localhost:3000 (default configuration)
$ npm run dev

Production Mode

# install dependencies
$ NODE_ENV=production npm install

# run setup for initial user, wallet and contracts (will skip for already existing ones)
$ NODE_ENV=production npm run setup

# start server for production at localhost:3000 (default configuration)
$ NODE_ENV=production npm run start

Setup Client

See Blockchain OTC Market - Client

Initial Login

Credentials for the admin user created during setup:

Username: admin
Password: insecure!password

The password should be changed after login.

Process to setup a trading scenario

Initial user admin (above) has to:

Users with Euro token can then buy Asset token, users with Asset token can sell them for Euro token.