johnhec / blockchain-otc-dapp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

  • distribute Euro token to existing other users who have to sign up themselves (via client user interface).
  • release Asset token for trading (via client user interface).

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

About

License:MIT License


Languages

Language:JavaScript 52.0%Language:Vue 45.1%Language:CSS 1.9%Language:Shell 0.7%Language:HTML 0.2%