Files
explorer-monorepo/scripts
defiQUG 2b956a5a83 Frontend: complete task list (C1–L4), security, a11y, L1 block card helper
- React: response.ok checks (address, transaction, search); block number validation; stable Table keys; API modules (addresses, transactions, blocks normalizer)
- SPA: escapeHtml/safe URLs/onclick; getRpcUrl in rpcCall; cancel blocks rAF on view change; named constants; hash route decode
- SPA: createBlockCardHtml + normalizeBlockDisplay (L1); DEBUG console gating; aria-live for errors; token/block/tx detail escaping
- Docs: FRONTEND_REVIEW.md, FRONTEND_TASKS_AND_REVIEW.md; favicons; .gitignore *.tsbuildinfo

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-10 18:43:37 -08:00
..

Scripts

Development and deployment scripts for the ChainID 138 Explorer Platform.

Available Scripts

setup.sh

Initial setup script that:

  • Creates .env file from .env.example
  • Installs backend dependencies (Go modules)
  • Installs frontend dependencies (npm)
  • Starts infrastructure services (PostgreSQL, Elasticsearch, Redis)
  • Runs database migrations

Usage:

./scripts/setup.sh

check-requirements.sh

Checks if all required tools are installed:

  • Go 1.21+
  • Node.js 20+
  • Docker
  • Docker Compose

Usage:

./scripts/check-requirements.sh

run-dev.sh

Starts all services in development mode:

  • Infrastructure services (PostgreSQL, Elasticsearch, Redis)
  • Database migrations
  • Indexer service
  • API server
  • Frontend development server

Usage:

./scripts/run-dev.sh

Note: Press Ctrl+C to stop all services.

deploy.sh

Production deployment script (to be configured).

test.sh

Run tests (to be configured).

Troubleshooting

Script not found

Make sure you're running scripts from the project root directory:

cd explorer-monorepo
./scripts/run-dev.sh

Permission denied

Make scripts executable:

chmod +x scripts/*.sh

Script fails with path errors

The scripts automatically detect the project root, but if you encounter issues, make sure you're in the explorer-monorepo directory when running them.