This is a Next.js project bootstrapped with create-next-app
.
- The RPC endpoint of the EVM compatible blockchain node
- Example:
http://localhost:8545
- The API URL of an etherscan like blockchain explorer
- Example:
https://api.etherscan.io
- Your API key for the etherscan explorer
You can create a .env
file and paste the contets from .env.example
.
- Yarn is the preferred package manager of this repository
corepack enable
yarn set version stable
- The repository supports yarn Zero-Installs
yarn install
Run the development server:
yarn dev
Open http://localhost:3000 with your browser to see the result.
yarn build
- You can start to serve the build by starting a local server:
yarn run start
- Or you can export the static files:
yarn run next export
docker build -t imageName .
- To set the env variables, define them during runtime.
Example:
docker run -dp 3000:80 -e "ETH_NODE_URL=http://mynoderpc.app/rpc" -e "EXPLORER_API_KEY=mySecretAPIkey
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!