Skip to content

hirosystems/explorer

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
March 28, 2023 11:19
February 16, 2023 14:43
February 16, 2023 14:43
March 21, 2023 13:08
February 16, 2023 14:43
August 30, 2022 15:19
February 16, 2023 14:43
March 24, 2023 19:29
March 9, 2020 11:29
March 20, 2023 18:01
March 9, 2020 11:29
March 28, 2023 11:19
January 9, 2021 12:10
March 28, 2023 11:19
March 28, 2023 11:19
February 16, 2023 14:43

Stacks 2.0 Explorer

An image of the Stacks Explorer CI/CD

Environment Status
Prod Prod App Status
Staging Staging App Status

Getting started

The Stacks Explorer is built with React, next.js and @stacks/ui.

To run the explorer locally, first clone this repo.

Next let's make sure you have the tools to install the projects dependencies:

  1. Install NodeJS that includes npm
  2. Install Pnpm

We highly recommend using Homebrew.

Now open your Terminal, and make sure you are in the /explorer folder to run pnpm i to install the dependencies:

pnpm i

Env variables

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

NEXT_PUBLIC_MAINNET_API_SERVER=https://api.hiro.so
NEXT_PUBLIC_TESTNET_API_SERVER=https://api.testnet.hiro.so
NEXT_PUBLIC_LEGACY_EXPLORER_API_SERVER=https://explorer-api.legacy.blockstack.org
NEXT_PUBLIC_DEPLOYMENT_URL=https://explorer.stacks.co
NEXT_PUBLIC_MAINNET_ENABLED="true"
NEXT_PUBLIC_DEFAULT_POLLING_INTERVAL="10000"

If you are in a mac, you'll need to add this to /etc/paths

Run in development mode

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

pnpm dev

Building for production

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