The current version of the Blockchain Explorer is a MVP version. It includes websocket capabilities that allow you to view activity on the blockchain network in real time.
In the project directory, you can run:
npm start
npm run build
npx cypress run
When you clone the project, you will need to create a file, config.json, inside the folder ./src/utility In this file, you must add the following lines:
{
"BASEURL": http://...,
"SOCKETURL": ws://...,
}
...and enter the base URL or IP address and port for your backend application. Both lines should be strings. You should not include a trailing slash.
The project includes a colour-coded logger. The logger will work in development only. Possible log levels include: log, info, success, get, warn, error, and special. The default level is log.
This project includes Cypress as a dependency. It includes tests for the search bar, main data table pagination, and reload testing.
Use the command npx cypress run
to run these tests.