Git Product home page Git Product logo

explorer's Introduction

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 Yarn

We highly recommend using Homebrew.

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

yarn

Env variables

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

NEXT_PUBLIC_MAINNET_API_SERVER=https://stacks-node-api.stacks.co
NEXT_PUBLIC_TESTNET_API_SERVER=https://stacks-node-api.testnet.stacks.co
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 yarn task which will launch the application at http://localhost:3000.

yarn dev

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.