lumina/QUICKSTART.md
2025-11-29 23:13:05 +03:00

3.3 KiB

Lumina 3D Block Explorer - Quick Start Guide

๐Ÿš€ Get Started in 5 Minutes

# 1. Clone repository
git clone <repository-url>
cd lumina

# 2. Start all services
docker-compose up

# 3. Open browser
# UI: http://localhost:9001
# 3D View: http://localhost:9001/graph/3d/public

That's it! All services (MongoDB, Elasticsearch, API, UI) will start automatically.

Option 2: Manual Setup

# 1. Install dependencies
cd api && npm install
cd ../ui && pnpm install

# 2. Start databases (Docker)
docker-compose up mongodb mongodb-archive elasticsearch

# 3. Start API (Terminal 1)
cd api && npm start

# 4. Start UI (Terminal 2)
cd ui && pnpm dev-server

# 5. Open http://localhost:9001

๐Ÿ“‹ Prerequisites

๐ŸŽฏ Key Features

3D Galaxy Visualization

Navigate to /graph/3d/public to see:

  • Real-time transaction particles
  • Whale detection (pink spheres >50k XLM)
  • Soroban contracts (cyan pulsing)
  • Interactive camera controls
  • Time travel mode
  • Network topology view

AI-Powered Insights

  1. Get OpenRouter API key: https://openrouter.ai/keys
  2. Go to Settings โ†’ AI Configuration
  3. Enter API key
  4. Toggle AI Insights in 3D view
  • Search accounts, transactions, assets
  • AI-powered query understanding
  • Instant suggestions

๐Ÿ”ง Configuration

Environment Variables

API (.env):

PORT=3000
MONGODB_URI=mongodb://127.0.0.1:27087/se_pub802
ELASTICSEARCH_URL=http://localhost:9201

UI (.env):

REACT_APP_API_ENDPOINT=http://localhost:3000
REACT_APP_ENABLE_3D_VIEW=true

See .env.example files for all options.

๐Ÿงช Testing

# Unit tests
cd api && npm test
cd ui && pnpm test

# E2E tests
npx playwright test

# Watch mode
npm test -- --watch

๐Ÿ“š Documentation

๐Ÿ› Troubleshooting

MongoDB Connection Failed

# Check MongoDB is running
docker ps | grep mongodb

# Restart
docker-compose restart mongodb

3D View Not Loading

  1. Check WebGL support: https://get.webgl.org/
  2. Check browser console for errors
  3. Try reducing particles: REACT_APP_3D_MAX_PARTICLES=1000

SSE Connection Issues

  1. Check API is running: curl http://localhost:3000/health
  2. Check CORS in api/.env
  3. Check browser console

๐ŸŽจ Customization

Change Whale Threshold

# In ui/.env
REACT_APP_3D_WHALE_THRESHOLD=100000  # 100k XLM

Adjust Performance

# In ui/.env
REACT_APP_3D_MAX_PARTICLES=1000  # Lower for better FPS
REACT_APP_3D_TARGET_FPS=30       # Lower target FPS

๐Ÿšข Deployment

See DEPLOYMENT.md for production deployment guide.

๐Ÿ“ž Support

  • Issues: GitHub Issues
  • Docs: See documentation files
  • Community: Stellar Discord

๐ŸŽ‰ What's Next?

  1. โœ… Explore 3D visualization
  2. โœ… Try AI insights
  3. โœ… Search for accounts/transactions
  4. โœ… Toggle different view modes
  5. โœ… Experiment with filters

Enjoy exploring the Stellar Network in 3D! ๐ŸŒŒ