2023-05-12 16:17:15 -03:00
2023-03-31 17:07:40 -03:00
2023-05-11 17:15:51 -03:00
2023-03-20 11:59:30 -03:00
2023-05-11 17:15:51 -03:00
2023-05-11 17:15:51 -03:00
2023-05-10 22:46:38 -03:00
2023-04-25 12:44:49 -03:00
2023-03-01 14:57:05 -05:00
2023-04-26 17:11:28 -03:00
2023-04-04 17:34:14 -03:00
2023-05-10 22:46:38 -03:00
2023-05-12 16:17:15 -03:00
2022-11-22 18:30:38 +04:00
2023-02-28 10:49:42 -05:00
2023-04-04 17:34:14 -03:00
2022-10-11 11:47:11 +03:00
2023-02-22 11:22:22 -05:00
2023-02-22 11:22:22 -05:00
2023-04-19 15:40:25 -03:00
2022-11-24 13:38:38 +04:00
2023-04-11 19:25:22 -03:00
2023-05-09 22:21:01 -03:00
2023-02-21 19:23:28 -05:00
2023-04-19 17:03:02 -03:00
2023-04-11 19:24:42 -03:00
2023-02-24 12:37:08 -05:00
2022-09-07 11:47:32 +03:00
2023-02-03 13:34:25 -05:00

Blockscout frontend app

Frontend application for Blockscout blockchain explorer

App running and configuration

App is distributed as a docker image. Info about the package and its recent releases you can find here.

You can configure your app by passing necessary environment variables when stating a container. See full list of envs and their description here.

Development

Technology stack

Core technologies what used in the project are

  • yarn as package manager
  • React as UI library
  • Next.js as application framework
  • Chakra as component library; our theme customization could be found in /theme folder
  • jest as JavaScript testing framework
  • playwright as a tool for components visual testing

And of course our premier language is Typescript


Local Development

Pre-requisites You should have installed Node.js v16. The best way to manage your local Node.js version is nvm

For local development please follow next steps:

  • clone repo
  • install dependencies with yarn
  • clone .env.example into configs/envs/.env.secrets and fill it with necessary secret values (see description below)
  • to spin up local dev server
    • for predefined networks configs (see full available list in package.json) you can just run yarn dev:<app_name>
    • for custom network setup create .env.local file with all required environment variables from the list and run yarn dev
  • navigate to the host from logs output

Components visual testing

We use playwright experimental components testing for visual (screenshots) CI check. Test renders a single component in headless browser in docker, generates screenshots and then compares this screenshot with a reference one. To perform testing locally you need to install docker and run yarn test:pw:docker

Building and running your own docker image

For building a docker image simply run yarn build:docker or alternatively run docker build and pass your own args.

For running app container from freshly built image with your local env config at ./.end.local use yarn start:docker:local command or run docker run manually.

Disclaimer Do no try to generate production build of the app on your local machine (outside the docker), it will fail.

S
Description
Lux Network Blockchain Explorer.
Readme GPL-3.0
598 MiB
Languages
TypeScript 96%
JavaScript 2.6%
Shell 0.6%
CSS 0.4%
Python 0.2%
Other 0.2%