This repo contains hackathon project for Block explorer. It's based on NextJs ans suppose to use Apollo GraphQL client to fetch the data.
Run the development server:
yarn dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying pages/index.tsx
. The page auto-updates as you edit the file.
This project uses next/font
to automatically optimize and load Inter, a custom Google Font.
Values in .env.production
file should be prefixed with APP_NEXT_
so you can override them while running the container! (See more at https://raphaelpralat.medium.com/system-environment-variables-in-next-js-with-docker-1f0754e04cde)
docker build -t expolore-stage-arbitrum .
docker run -p 3000:3000 -e HOSTNAME='0.0.0.0' -e NEXT_PUBLIC_API_URL=https://explorer-graph-stage.dexguru.biz -e NEXT_PUBLIC_CHAIN_ID=42161 expolore-stage-arbitrum
NEXT_PUBLIC_API_URL=https://explorer-graph-stage.dexguru.biz NEXT_PUBLIC_CHAIN_ID=42161 yarn dev
for backend API and chain
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!