Skip to content

etherdata-blockchain/etd-local-admin-node

Repository files navigation

ETDAdmin Node

codecov

Build Docker Image

Codacy Badge

Run

  1. Install dependencies
yarn install
  1. Build
yarn build
  1. Start
node dist/app.js

Available environments

rpc= wsRpc= db= etd_node_id= etd_node_name= NODE_ENV=development

Development

This project was split into following design pattern.

  1. Handler - When remote sends any command or any schedule jobs triggered, handler will be called.
  2. Service - When handler received jobs, it will be sent to the corresponding service to handle.
  3. Remote client - Handle every connection between client and server

In general, services are contained by handler, and handler will decide how to use its services.