Skip to content
This repository has been archived by the owner on Apr 5, 2019. It is now read-only.

CodeChain-io/codechain-agent-server

Repository files navigation

This project is moved to https://github.com/CodeChain-io/codechain-dashboard

CodeChain Agent Hub

Join the chat at https://gitter.im/CodeChain-io/codechain-agent-hub

CodeChain Agent Hub is a server which collects many CodeChain node's information(best block, pending parcels, log, ...). Also, CodeChain Agent Hub serves collected data to CodeChain Dashboard.

Install

You should set up a rust toolchain.

You can install codechain-agent-hub by running cargo install

Install Postgres and create schema

Ubuntu

sudo apt install postgresql postgresql-contrib
sudo -u postgres psql -f create_user_and_db.sql
generate-schema

Mac (brew)

brew install postgresql
brew services start postgresql
psql postgres -f create_user_and_db.sql
generate-schema

Run

Just run codechain-agent-hub in your shell. To safely communicate with the Dashboard, please set the PASSPHRASE environment variable. The Dashboard program should use the same passphrase.

When you are using the PASSPHRASE you should use SSL over the connection. If you don't use the SSL, the PASSPHRASE is open to the internet.

CodeChain Agent Hub will listen 3012 port to communicate with the Dashboard using JSON-RPC.

CodeChain Agent Hub will listen 4012 port to communicate with the Agent using JSON-RPC.

CodeChain Agent Hub will listen 5012 port to serve CodeChain's log file using HTTP.

About

CodeChain management and monitoring tool

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages