Code Monkey home page Code Monkey logo

explorer's Introduction

Stacks 2.0 Explorer

An image of the Stacks Explorer

Getting started

The Stacks Explorer is built with react, next.js and @blockstack/ui. To run the explorer locally, you can clone this repo and install the dependencies needed. Make sure you have yarn installed.

yarn

Env variables

The application needs a couple of env variables to work properly:

MOCKNET_API_SERVER=https://crashy-stacky.zone117x.com
TESTNET_API_SERVER=https://sidecar.staging.blockstack.xyz

Run in development mode

To build and run the application, you can run this yarn task which will launch the application at http://localhost:3000.

yarn dev

Using a local mocknet

The Stacks Explorer connects to the Stacks Blockchain via an API server found here: stacks-blockchain-sidecar. The Explorer can connect and switch between a few different versions of the network: testnet, mocknet, and a local instance. To run a local instance of the Sidecar API, please read this. Once you have the Sidecar API running, it should be located at http://localhost:3999. You can then from within your local version of the Explorer switch between the three network options:

A gif of the network switcher found within the explorer

Building for production

To build for production, run yarn build which will run the default next.js build task.

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.