npm installCreate a .env.local file in the root directory:
# Copy the example file
cp .env.example .env.localThen edit .env.local with your configuration:
# Lava Network
NEXT_PUBLIC_LAVA_REST_API=https://rest.lavenderfive.com:443/lava
NEXT_PUBLIC_LAVA_RPC=https://rpc.lavenderfive.com:443/lava
NEXT_PUBLIC_LAVA_WEBSOCKET=wss://rpc.lavenderfive.com:443/lava/websocket
# Lava SDK (Optional - for advanced features)
NEXT_PUBLIC_LAVA_PROJECT_ID=your_project_id
LAVA_BADGE_SERVER=https://badges.lavanet.xyz
# Database (Optional - for historical data)
NEXT_PUBLIC_SUPABASE_URL=your_supabase_url
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_key
# Optional Services
REDIS_URL=your_redis_url
SENTRY_DSN=your_sentry_dsnNote: For initial testing, you can use the default Lava Network endpoints. The app will work with mock data if you don't provide a Lava Project ID.
npm run devOpen http://localhost:3000 in your browser.
npm run build
npm startLavaFlow/
├── app/ # Next.js App Router pages
│ ├── api/ # API routes
│ ├── calculator/ # Profitability calculator
│ ├── dashboard/ # RPC performance dashboard
│ ├── explorer/ # Block explorer
│ └── generator/ # Template generator
├── components/ # React components
├── lib/ # Utilities and API clients
├── hooks/ # Custom React hooks
└── public/ # Static assets
- Real-time blocks with WebSocket updates
- Transaction search and details
- Validator information
- Network statistics
- Provider metrics (latency, uptime, success rate)
- Geographic provider map
- Chain health monitoring
- Alert system
- Multi-chain ROI analysis
- Break-even calculations
- Earnings projections
- Chain comparisons
- Pre-built dApp templates
- One-click code generation
- Multi-chain support
- Downloadable projects
If port 3000 is in use:
npm run dev -- -p 3001Clear Next.js cache:
rm -rf .next
npm run buildEnsure all dependencies are installed:
npm installIf map components don't render correctly, ensure Leaflet CSS is imported. This is already handled in the ProviderMap component.
-
Get Lava Network Project ID (Optional)
- Visit Lava Network
- Create a project to get your Project ID
- Add it to
.env.local
-
Configure Database (Optional)
- Set up Supabase for historical data storage
- Configure Redis for caching (recommended for production)
-
Deploy to Vercel
npm i -g vercel vercel --prod
-
Customize Styling
- Edit
tailwind.config.tsfor custom colors - Modify component styles in the
components/directory
- Edit
- Use
npm run lintto check for code issues - The app works with mock data by default
- Real API integration requires Lava Network credentials
- WebSocket connections require the correct endpoint URL
For issues or questions:
- Check the README.md for more details
- Review the Lava Network documentation at docs.lavanet.xyz