The explorer is configured for uni-1.
You need to install the code-explorer dependencies before choosing which network you want to connect to:
yarn install
You don't need to run a local network in order to connect to the testnets, you just need the right start script for each network.
yarn start
Clone the CosmJS repo in order to run a local Stargate network:
git clone --depth 1 --branch v0.25.5 https://github.com/cosmos/cosmjs.git
Also make sure to comply with the prerequisites.
In order to run a local Stargate network, follow these instructions.
The start script that makes the code-explorer connect to a local Stargate network is:
yarn start-stargate
You can build a code explorer and deploy it as static HTML/JS files.
Requirements: yarn, Node.js 10+
yarn install
PUBLIC_URL=https://code-explorer.junochain.com/ REACT_APP_BACKEND=lucinanet yarn build
Background image from https://unsplash.com/photos/QqCLSA3EQUg