Skip to content

dex-guru/block-explorer

Repository files navigation

Dex.guru Block Explorer

This repo contains hackathon project for Block explorer. It's based on NextJs ans suppose to use Apollo GraphQL client to fetch the data.

Development

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.

Docker

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

ENV VARS

NEXT_PUBLIC_API_URL=https://explorer-graph-stage.dexguru.biz NEXT_PUBLIC_CHAIN_ID=42161 yarn dev

for backend API and chain

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

About

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •