This repo is the website for the Iron Fish Block Explorer version 2. The first version of the Block Explorer can be found in iron-fish/block-explorer
This is a Next.js project bootstrapped with create-next-app
.
Create an .env.local
file. You can copy the existing template (cp .env.template .env.local
)
NEXT_PUBLIC_API_BASE_URL=https://api.ironfish.network
Then, run the development server:
npm run dev
or
yarn dev
Open http://localhost:3000 with your browser to see the result.
Optional - Run npx husky install
in order to set up your git hooks locally.
Add `nps` using either `yarn global add nps` or `npm i nps -g`
Run `nps` for a list of scripts to run in the repo.
By default we run a precommit hook which runs nps care. If needed, you can avoid this hook by adding a --no-verify flag, e.g. git commit -m "cool" --no-verify
Run npm run dev -- -p 4040
or yarn dev -p 4040
to run the server locally on a different port than 3000 (the default)
- New PRs should point at
staging
. - When we want to do a release to production, we should open a PR to merge
staging
intomaster
.- For these PRs, please add a Needs Design Review Label and tag
@skylarrichard123
for review.
- For these PRs, please add a Needs Design Review Label and tag
- Once the release branch has been reviewed, either: a. There are fixes needed - open new PRs and point them at the release branch b. There are no fixes needed - Remove the Needs Design Review label and add the Designer Approved Label