This is an alternative blockchain explorer for Ontology blockchain. The application is hosted on http://www.ontdetective.org.
Install ElasticSearch according to platform on which it will be used (https://www.elastic.co/guide/en/elasticsearch/reference/current/_installation.html)
Add these two lines to elasticsearch.yml configuration file
http.cors.enabled: true
http.cors.allow-origin: *
Application assumes that elasticsearch is running on http://localhost:9200. Otherwise environment variable REACT_APP_API_URL should be overriden.
For faster building process and development experience install Yarn
npm install --global yarn
git clone 'https://github.com/backslash47/ontology-detective.git'
yarn start
yarn buildServer
yarn mappings
yarn ingest
Edit package.json and change REACT_APP_API_URL to corresponding ElasticSearch address.
yarn build
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.
- X-Pack Official ElasticSearch paid option
- ReadonlyRest Unofficial free option
- Amazon ElasticSearch Amazon authentization
- TypeScript - Used language
- Node.js - JavaScript runtime for building and ingest
- React - The web framework used
- Semantic UI - The web framework used
- Elasticsearch - Backend data storage and indexer
- Ontology TypeScript SDK - The framework used
- Matus Zamborsky - Initial work - Backslash47
This project is licensed under the LGPL License - see the LICENSE.md file for details
Many thanks to the whole Ontology team, who done a great job bringing Ontology to life.