backslash47 / ontology-detective

Alternative blockchain explorer for Ontology blockchain

Home Page:http://www.ontdetective.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Alternative Explorer For Ontology Blockchain

Overview

This is an alternative blockchain explorer for Ontology blockchain. The application is hosted on http://www.ontdetective.org.

Getting started

Install ElasticSearch

Install ElasticSearch according to platform on which it will be used (https://www.elastic.co/guide/en/elasticsearch/reference/current/_installation.html)

Enable CORS for ElasticSearch

Add these two lines to elasticsearch.yml configuration file

http.cors.enabled: true
http.cors.allow-origin: *

Run ElasticSearch

Application assumes that elasticsearch is running on http://localhost:9200. Otherwise environment variable REACT_APP_API_URL should be overriden.

Install yarn

For faster building process and development experience install Yarn

npm install --global yarn

Download

git clone 'https://github.com/backslash47/ontology-detective.git'

Start development server

yarn start

Build Ingester

yarn buildServer

Create ElasticSearch mapping

yarn mappings

Start Ingester process

yarn ingest

Create production Build

Edit package.json and change REACT_APP_API_URL to corresponding ElasticSearch address.

yarn build

Production deployment

Built distribution is located in build directory. It can be hosted by any webserver, which is set to rewrite any non asset url to index.html (Apache httpd, Nginx, Amazon S3, Amazon CloudFront, ...).

For production deployment also the ElasticSearch must be guarded by Authentization mechanism.

Built With

Authors

License

This project is licensed under the LGPL License - see the LICENSE.md file for details

Acknowledgments

Many thanks to the whole Ontology team, who done a great job bringing Ontology to life.

About

Alternative blockchain explorer for Ontology blockchain

http://www.ontdetective.org

License:Other


Languages

Language:TypeScript 97.8%Language:CSS 1.6%Language:HTML 0.6%