Development Setup
Prerequisites
Section titled “Prerequisites”- Bun (package manager and runtime)
- Docker (for backend services, optional)
- D2 (for diagram rendering, optional)
Quick Start
Section titled “Quick Start”- Clone the repository
git clone https://github.com/salazarsebas/stellar-explorer.gitcd stellar-explorer- Install dependencies
bun install- Start the development server
bun run devThe explorer will be available at http://localhost:3000.
Terminal Product
Section titled “Terminal Product”Stellar Explorer includes a Go-based terminal interface for keyboard-driven Stellar lookup and monitoring:
bun run tui:buildbun run tui:runbun run tui:testFor hybrid mode with indexed reads:
bun run tui-indexer:infra:upbun run tui-indexer:migratebun run tui-indexer:run:servebun run tui:run:hybridBackend Services (Optional)
Section titled “Backend Services (Optional)”For indexer functionality, start the Docker services:
docker compose -f infra/docker-compose.yml up -dThis starts PostgreSQL (port 54320), Redis (port 63790), and Typesense (port 18108).
For the dedicated TUI backend infrastructure, use:
bun run tui-indexer:infra:upEnvironment Variables
Section titled “Environment Variables”Copy the example file and adjust if needed:
cp .env.local.example .env.localAvailable Commands
Section titled “Available Commands”| Command | Purpose |
|---|---|
bun run dev | Start development server (port 3000) |
bun run build | Production build |
bun run lint | Run ESLint |
bun run format | Format code with Prettier |
bun run test | Run tests |
bun run test:watch | Run tests in watch mode |
bun run tui:build | Build the TUI |
bun run tui:test | Run full TUI test suite (unit + integration) |
bun run tui:test:unit | Run fast TUI unit and fixture tests only |
bun run tui:test:integration | Run TUI integration reliability tests only |
bun run tui-indexer:build | Build the TUI backend |
bun run tui-indexer:test | Run local-safe TUI indexer tests (no Docker required) |
bun run tui-indexer:test:all | Run full TUI indexer suite (requires local Postgres) |
bun run tui-indexer:infra:up | Start local infrastructure for tui-indexer |