项目作者: graphsense

项目描述 :
A web dashboard for interactive cryptocurrency analysis.
高级语言: JavaScript
项目地址: git://github.com/graphsense/graphsense-dashboard.git
创建时间: 2017-10-18T13:26:11Z
项目社区:https://github.com/graphsense/graphsense-dashboard

开源协议:MIT License

下载


GraphSense Dashboard

GraphSense’s Web GUI for interactive cryptocurrency analysis written in Elm.

Requirements

Configuration

Run cp config/Config.elm.tmp config/Config.elm and optionally configure plugins and your custom theme here.

Install plugins

  1. Place plugins in the plugins folder.
  2. Run make clean-generated-plugins && make
  3. Configure the plugin in config/Config.elm, eg:
  1. import Myplugin
  2. ...
  3. plugins : Plugin.Plugins
  4. plugins =
  5. Plugin.empty
  6. |> Plugin.myplugin (Myplugin.plugin {- plugin specific arguments here -})

Development setup

Run make serve. It starts Vite’s development server.

Production build

Run make build. It builds the app together with all configured plugins to ./dist.

Develop plugins

Bootstrapping

Use plugin_stub as a starting point: cp -r plugin_stub plugins/myplugin

The name of the plugin is case insensitive. Elm package name of the plugin is the plugin name with the first letter capitalized, eg. Myplugin.

Adapt the stub accordingly:

  • rename ./Stub, ./Stub.elm and stub.js to your plugin’s name. Keep the respective capitalization.
  • replace Stub in the stub Elm files with your plugin’s Elm package.

Place plugin specific dependencies in plugin’s ./dependencies.txt.

Development

Plugins can hook into the dashboard functionality in order to extend it.

Plugin’s hook implementations need to be set in your plugin’s root module which was derived from ./Stub.elm.
Please see the comments in the respective files of ./src/PluginInterface for detailed documentation.

Docker build

Prerequisites

Install Docker and Docker Compose:

Configuration

Copy docker/env.template to .env:

  1. cp docker/env.template .env

Edit the file .env and set the URL of the graphsense-REST
service, e.g.:

  1. REST_URL="https://api.ikna.io"

Usage

Build the Docker image:

  1. docker-compose build

Start a container (in detached mode):

  1. docker-compose up -d

Finally, test the application in a web browser:

  1. http://localhost:8000