A modern React-based web interface for the Dogecoin Indexer project, built with Vite.
- Real-time Block Display: Shows recent blocks from the Dogecoin blockchain
- Current Height: Displays the current blockchain height
- Auto-refresh: Automatically updates data every 30 seconds
- Responsive Design: Works on desktop and mobile devices
- Error Handling: Graceful error handling with retry functionality
- Node.js (v22.18.0 or higher recommended)
- The Dogecoin Indexer backend running (see ../indexer)
-
Install dependencies:
npm install
-
Configure the Indexer API URL: Edit
src/config.jsand update theINDEXER_API_URLif your indexer runs on a different host/port. -
Start the development server:
npm run dev
-
Open your browser: Navigate to
http://localhost:5173(or the port shown in the terminal)
The main configuration file is located at src/config.js:
export const config = {
INDEXER_API_URL: 'http://localhost:8888', // Indexer API base URL
BLOCKS_REFRESH_INTERVAL: 30000, // Refresh interval (30s)
MAX_BLOCKS_DISPLAY: 50, // Max blocks to show
// ... more options
};The UI integrates with the following Indexer API endpoints:
GET /blocks- Recent blocks dataGET /height- Current blockchain heightGET /balance?address=<addr>- Address balanceGET /utxo?address=<addr>- Address UTXOsGET /health- API health status
src/
├── components/
│ ├── Blocks.jsx # Main blocks display component
│ └── Blocks.css # Component styles
├── services/
│ └── indexerApi.js # API service layer
├── config.js # Configuration file
├── App.jsx # Main app component
├── App.css # App styles
├── main.jsx # Entry point
└── index.css # Global styles
-
Build for production:
npm run build
-
Preview production build:
npm run preview
-
Lint code:
npm run lint
These warnings appear because your Node.js version is older than what Vite 7.x requires. Solutions:
- Update Node.js to v20.18.0+
- Ensure the Indexer backend is running
- Check the API URL in
src/config.js - Verify the Indexer is accessible at the configured URL
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
This project is part of the Dogeorg ecosystem.