Coder Social home page Coder Social logo

nearblocks's Introduction

NearBlocks Near Explorer

NearBlocks is the leading Near Blockchain Explorer, Search, API and Analytics Platform for Near Protocol, a decentralized smart contracts platform. Built and launched in 2022, it is one of the earliest projects built around Near Protocol and its community with the mission of providing equitable access to blockchain data

Setup

Prerequisites:

  • Docker
  • Docker Compose

In the root directory, you'll find two essential files: mainnet.env.example and testnet.env.example. These files define many common environment variables. To configure your environment, simply copy these files:

  • Copy mainnet.env.example to mainnet.env for the Mainnet setup.
  • Copy testnet.env.example to testnet.env for the Testnet setup.

Once your environment is set up, you can launch your application using Docker Compose. Here are the commands for both Mainnet and Testnet:

docker compose -f docker-compose.mainnet.yml up -d --build # for Mainnet
docker compose -f docker-compose.testnet.yml up -d --build # for Testnet

Modules

Turborepo is used as the build system for our project. Our main modules reside in the 'apps' folder, while shared libraries like 'types' and 'utils' are in the 'packages' folder

  • api: standalone server which serves the indexed data
  • backend: contains database migrations and cron jobs to fetch and generate stats
  • bos-components: our components built on BOS
  • explorer-selector: BOS gateway for selecting your favourite explorer (Nearblocks)
  • indexer-base: our indexer built using near lake to index blocks, receipts, transactions, accounts and access keys for storing in timescale
  • indexer-balance: secondary indexer for tracking timeseries account balances
  • indexer-events: secondary indexer for tracking timeseries FT and NFT events

Contributing

We welcome contribution to NearBlocks, please see CONTRIBUTING for more information.

License

NearBlocks is licensed under the terms of Business Source License 1.1.

See LICENSE for details

nearblocks's People

Contributors

cherrybarry avatar yudhomax avatar andrewklau avatar iqbaldevpro avatar jamal-invoker avatar globart avatar frrichard 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.