3.3 KiB
3.3 KiB
Lumina 3D Block Explorer - Quick Start Guide
๐ Get Started in 5 Minutes
Option 1: Docker (Recommended)
# 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
- Docker: Install Docker
- Node.js 20+: Install Node.js
- pnpm:
npm install -g pnpm
๐ฏ 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
- Get OpenRouter API key: https://openrouter.ai/keys
- Go to Settings โ AI Configuration
- Enter API key
- Toggle AI Insights in 3D view
Smart Search
- 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
- Development: DEVELOPMENT.md
- Deployment: DEPLOYMENT.md
- Architecture: ARCHITECTURE.md
- API Docs: DOCUMENTATION.md
๐ Troubleshooting
MongoDB Connection Failed
# Check MongoDB is running
docker ps | grep mongodb
# Restart
docker-compose restart mongodb
3D View Not Loading
- Check WebGL support: https://get.webgl.org/
- Check browser console for errors
- Try reducing particles:
REACT_APP_3D_MAX_PARTICLES=1000
SSE Connection Issues
- Check API is running:
curl http://localhost:3000/health - Check CORS in
api/.env - 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?
- โ Explore 3D visualization
- โ Try AI insights
- โ Search for accounts/transactions
- โ Toggle different view modes
- โ Experiment with filters
Enjoy exploring the Stellar Network in 3D! ๐