Giter Site home page Giter Site logo

whoami233 / iotex-explorer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from iotexproject/iotex-desktop-wallet

0.0 1.0 0.0 5.29 MB

Official explorer and wallet of IoTeX blockchain!

Home Page: https://iotexscan.io

License: Apache License 2.0

JavaScript 7.80% CSS 1.72% TypeScript 90.33% HTML 0.13% Dockerfile 0.02%

iotex-explorer's Introduction

CircleCI

iotex-explorer

iotex-explorer is a frontend website for iotex-core blockchain.

Check our site hosted at https://iotexscan.io.

Or deploy your own instance on Heroku.

Deploy

Getting Started

git clone [email protected]:iotexproject/iotex-explorer.git

Run your project

This is intended for *nix users. If you use Windows, go to Run on Windows. Let's first prepare the environment.

cd iotex-explorer

nvm use 10.15.0
npm install

# prepare environment variable
cp ./.env.tmpl ./.env

Note: please provide your iotex-core URL like IOTEX_CORE=http://api.mainnet.iotex.one:80 in ./.env file.

Built with OneFx (React, GraphQL, KOA, TypeScript, AVA, Webpack, etc.)

Development mode

To run your project in development mode, run:

npm run watch

The development site will be available at http://localhost:4004.

Production Mode

It's sometimes useful to run a project in production mode, for example, to check bundle size or to debug a production-only issue. To run your project in production mode locally, run:

npm run build-production
NODE_ENV=production npm run start

Debugging Enterprise Mode

NODE_CONFIG_ENV=enterprise npm run watch

And then visit http://localhost:4004/?locale=zh-CN

NPM scripts

  • npm run test: test the whole project and generate a test coverage
  • npm run ava ./path/to/test-file.js: run a specific test file
  • npm run build: build source code from src to dist
  • npm run lint: run the linter
  • npm run kill: kill the node server occupying the port 4004.

Contribute to Localization?

Join here to contribute: https://lokalise.co/public/903185115c91ceff0cb2a0.70666943/

How to add meta for an address?

  • Fork this repo to your own.
  • Modify src/api-gateway/address-meta.json by append you entry to the json list.
    • Your entry should be follow struct as below
      {
        "address": "<your address>",
        "name": "<your address's name>"
      }
      
      Ex:
      {
        "address": "io1et7zkzc76m9twa4gn5xht3urt9mwj05qvdtj66",
        "name": "iotxplorerio"
      }
      
  • Commit & push your changes to your git repo.
  • Send a PR with title prefix [ADDRESS-META] and description of your address if you want to merge into our repo.

iotex-explorer's People

Contributors

puncsky avatar renovate[bot] avatar nmhung1210 avatar renovate-bot avatar uu-z avatar gyanpgupta avatar hunglmtb avatar anshuomomo avatar sxlwar avatar blesstosam avatar ququzone avatar guo avatar oyosc avatar coderzhi avatar raullenchai avatar xingwanyue avatar ety001 avatar w582745483 avatar eternityspring avatar athrunsun avatar lokalise-bot avatar zjz1993 avatar ketanb56up avatar freebreaker avatar bharat2704 avatar codacy-badger avatar niickchen avatar stacey0331 avatar koseoyoung avatar zjshen14 avatar

Watchers

James Cloos 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.