alphaqiu / filscan-backend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Overview

Filscan is a blockchain browser for Filecoin, which can be used to view Filecoin blockchain data, including querying addresses, messages information, block heights, miner information, token information, etc.

Table of Contents

Front-End

Back-End

Build and Install

Environment

  • golang >= v1.13
  • mongo >= v4.2
  • lotus >= v0.2.7

System Require

  • Linux or Mac OS

Build

git clone (githuburl)

cd Backend

make build-lotus

go build

Configuration

Edit app.conf in path /conf and set the correct parameter

mongoHost = "127.0.0.1:27017"

mongoUser = "root"

mongoPass = "admin"

mongoDB   = "filscan"

lotusGetWay="192.168.1.1:1234"

Run

Make sure mongo and lotus is active, and run the filscan_lotus

./filscan_lotus

The application will check lotus and mongo’s status. The application will stop if got any error from them. If application start success, it will work until sync all data down from lotus. 

API Document

Check document here

License

Dual-licensed under

MIT

Apache 2.0

About

License:Other


Languages

Language:Go 99.9%Language:Makefile 0.1%