Giter Club home page Giter Club logo

hub-dashboard's Introduction

Hub Dashboard Build Status

Mission control for Machinomy Hub

Get started

Copy example.env to .env and setup its parameters.

Ensure PostgreSQL' database (default - 'PaymentHub') and user (default user - 'paymenthub' with password '1') are exists in DBMS.

You can use only PostgreSQL as engine at the moment. Please, use only yarn, not npm.

Apply migrations (need only once per database)

yarn migrate

And do

1. yarn install
2. yarn build
3. yarn start

or

3. yarn inspect 

for Node.js-debugging in Chrome.

URL guide:

/admin/login - Login

/admin/payments - Payments

/admin/channels - Channels

Settings file (.env file)

Default .env file:

WALLET_ADDRESS=0x363dfeAfB265A1e98403A7613A3325Ec00FaF222
ETH_RPC_URL=http://127.0.0.1:8545
PORT=5005
DATABASE_URL=postgresql://paymenthub:1@localhost/PaymentHub
REDIS_URL=redis://127.0.0.1:6379

WALLET_ADDRESS - 0x-prefixed admin Ethereum-address (for sign in via Vynos)

ETH_RPC_URL - URL of Ethereum RPC (you can use local Ganache, but ensure you correctly deployed machinomy-contracts, see instructions below)

PORT - listening port for dashboard's website and API

DATABASE_URL - connection URL for the main database. postgresql:// prefix is mandatory.

REDIS_URL - connection string for REDIS. redis:// prefix is mandatory.

Working with local Ethereum RPC (via Ganache)

  1. Clone Machinomy and Contracts to local filesystem
git clone [email protected]:machinomy/machinomy.git
git clone [email protected]:machinomy/contracts.git
  1. Change directory to machinomy-contracts and do yarn link, compile and deploy contracts.
yarn link
yarn truffle:compile
yarn truffle:migrate --reset
yarn prepublish
  1. Change directory to machinomy and do yarn link, yarn link @machinomy/contracts
yarn link
yarn link @machinomy/contracts
yarn migrate
yarn prepublish
  1. Change directory to hub-dashboard and do yarn link machinomy
yarn link machinomy
  1. Rebuild hub-dashboard
yarn build
  1. Ensure that @machinomy/contracts are available - open this file
hub-dashboard/node_modules/machinomy/node_modules/@machinomy/contracts/dist/build/contracts/Unidirectional.json

Search for 'networks' (the only occur will be at very end of file) and check available network IDs. Network ID from Ganache must be in the list and value of its key 'address' must match address of Unidirectional contract ( address of Unidirectional appears in terminal when you deployed @machinomy/contracts via yarn truffle:migrate --reset)

Requirements

Node.js 10

yarnpkg 1.6

PostgreSQL 10

hub-dashboard's People

Contributors

aryaskov avatar ukstv avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.