Skip to content

dedooxyz/DedooExplorer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

DedooExplorer

A modern, multi-coin blockchain explorer built with Node.js and Express. Features a beautiful dark theme with customizable branding for any cryptocurrency.

Dashboard

Features

  • πŸŒ™ Dark Theme - Beautiful dark UI with customizable accent colors
  • πŸ”§ Multi-Coin Support - Configure for any coin via .env file
  • πŸ“Š Rich Analytics - Transaction charts, network statistics
  • πŸ” Universal Search - Search blocks, transactions, addresses
  • πŸ“± Responsive Design - Works on desktop, tablet, and mobile
  • ⚑ Fast - Direct connection to electrs backend

Requirements

Backend - Electrs

DedooExplorer requires dedoo-electrs-oldchain as the blockchain backend.

Before running the explorer, you must:

  1. Clone and set up dedoo-electrs-oldchain for your blockchain
  2. Ensure it's running and accessible (default: http://127.0.0.1:50010)
  3. Configure the ELECTRS_API URL in your .env file
# Clone and setup electrs backend first
git clone https://github.com/dedooxyz/dedoo-electrs-oldchain.git
cd dedoo-electrs-oldchain
# Follow the setup instructions in that repository

System Requirements

Installation

# Clone the repository
git clone https://github.com/dedooxyz/DedooExplorer.git
cd DedooExplorer

# Install dependencies
npm install

# Copy environment template
cp .env.example .env

# Edit configuration for your coin
nano .env

# Start the explorer
npm start

Configuration

Copy .env.example to .env and customize:

# Server
PORT=3001

# Electrs API (your dedoo-electrs-oldchain instance)
ELECTRS_API=http://127.0.0.1:50010

# Explorer Branding
EXPLORER_NAME=My Coin Explorer
COIN_NAME=MyCoin
COIN_TICKER=MYC
COIN_TAGLINE=The next generation cryptocurrency

# Logo (relative to /public or absolute URL)
LOGO_URL=/img/logo.png

# Social Links (leave empty to hide)
WEBSITE_URL=https://mycoin.com
GITHUB_URL=https://github.com/mycoin
TELEGRAM_URL=https://t.me/mycoin
TWITTER_URL=https://x.com/mycoin
DISCORD_URL=https://discord.gg/mycoin

Project Structure

DedooExplorer/
β”œβ”€β”€ server.js              # Express server & API routes
β”œβ”€β”€ package.json           # Dependencies & metadata
β”œβ”€β”€ .env                   # Configuration (create from .env.example)
β”œβ”€β”€ .env.example           # Configuration template
β”œβ”€β”€ public/
β”‚   β”œβ”€β”€ css/
β”‚   β”‚   └── style.css      # Main stylesheet
β”‚   β”œβ”€β”€ js/
β”‚   β”‚   └── app.js         # Frontend JavaScript
β”‚   └── img/
β”‚       └── logo.png       # Your coin logo
└── views/
    β”œβ”€β”€ partials/
    β”‚   β”œβ”€β”€ header.ejs     # Navigation header
    β”‚   └── footer.ejs     # Footer with links
    β”œβ”€β”€ index.ejs          # Dashboard
    β”œβ”€β”€ blocks.ejs         # Blocks list
    β”œβ”€β”€ block.ejs          # Block details
    β”œβ”€β”€ transactions.ejs   # Transactions list
    β”œβ”€β”€ transaction.ejs    # Transaction details
    β”œβ”€β”€ address.ejs        # Address details
    β”œβ”€β”€ statistics.ejs     # Statistics page
    └── error.ejs          # Error page

Pages

Page Route Description
Dashboard / Network stats, recent blocks, chart
Blocks /blocks Paginated block list
Block Detail /block/:hash Block info & transactions
Transactions /transactions Mempool + recent transactions
Transaction /tx/:txid Transaction inputs/outputs
Address /address/:addr Balance, UTXOs, history
Statistics /statistics Network analytics
Search /search?q= Universal search

API Proxy

The explorer proxies requests to electrs at /api/*:

# Examples
GET /api/blocks/tip/height
GET /api/block/:hash
GET /api/tx/:txid
GET /api/address/:address

Customization

Logo

Replace public/img/logo.png with your coin's logo (recommended: 200x200px PNG).

Colors

Edit CSS variables in public/css/style.css:

:root {
    --primary: #F5A623;        /* Main accent color */
    --primary-light: #FFD700;  /* Hover state */
    --primary-dark: #C88A1D;   /* Darker shade */
    --bg-dark: #0A0A0A;        /* Background */
    --bg-card: #111111;        /* Card background */
}

Development

# Run with auto-reload (if nodemon installed)
npm run dev

# Or standard start
npm start

Deployment

PM2 (Recommended)

# Install PM2
npm install -g pm2

# Start with PM2
pm2 start server.js --name dedoo-explorer

# Auto-start on boot
pm2 startup
pm2 save

Docker

# Clone repository
git clone https://github.com/dedooxyz/DedooExplorer.git
cd DedooExplorer

# Create your .env file
cp .env.example .env
nano .env

# Build and run with Docker Compose
docker-compose up -d

# View logs
docker-compose logs -f

# Stop
docker-compose down

The .env file and logo.png are mounted as volumes, so you can edit them without rebuilding:

# Edit configuration
nano .env

# Replace logo (PNG recommended)
cp /path/to/your/logo.png ./logo.png

# Restart to apply changes
docker-compose restart

Build manually

# Build image
docker build -t dedoo-explorer .

# Run container
docker run -d \
  --name dedoo-explorer \
  -p 3001:3001 \
  -v $(pwd)/.env:/app/.env:ro \
  dedoo-explorer

Credits

License

MIT License - see LICENSE file.


DedooExplorer v2.0.0 - A Dedoo.xyz Project

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors