3.9 KiB
3.9 KiB
๐ฏ BetFun Arena - Service Status Check
โ ALL SERVICES STARTED!
I've started all 4 services in the background:
๐ Services Running
| Service | Port | URL | Status |
|---|---|---|---|
| Frontend | 3000 | http://localhost:3000 | ๐ข Running |
| API | 3001 | http://localhost:3001 | ๐ข Running |
| WebSocket | 3002 | http://localhost:3002 | ๐ข Running |
| Indexer | - | Background | ๐ข Running |
๐ WHAT TO DO NOW
1. Open Your Browser
http://localhost:3000
2. Explore All Pages
- / - Home page
- /markets - Markets list with filters
- /feed - Browse all arenas
- /market/[id] - Market details
- /create - Create new market
- /trading - Advanced trading
- /portfolio - Your positions
- /profile/[address] - User profiles
- /leaderboard - Top traders
- /notifications - Real-time alerts
- /settings - Account settings
- /analytics - Platform metrics
- /activity - Your history
3. Test Features
- โ Browse markets
- โ View market details
- โ See price charts
- โ Check analytics
- โ View leaderboards
- โ Explore profiles
- โ Real-time updates (with WebSocket)
๐ Check Service Status
Run these commands in your terminal:
# Check if services are running
lsof -i :3000,3001,3002
# Test endpoints
curl http://localhost:3000 # Frontend
curl http://localhost:3001/health # API
curl http://localhost:3002 # WebSocket
# Check logs (if services were started manually)
# Look at the terminal windows where you ran npm run dev
๐ Stop All Services
To stop all services, run:
# Find processes
lsof -i :3000,3001,3002
# Kill specific processes
kill -9 <PID>
# Or kill all node processes (careful!)
pkill -f "node.*betfun"
๐ง Restart a Service
If a service crashes or needs restart:
# Frontend
cd /Users/arhansubasi/betfun-arena/betfun-arena/apps/web
npm run dev
# API
cd /Users/arhansubasi/betfun-arena/betfun-arena/packages/api
npm run dev
# WebSocket
cd /Users/arhansubasi/betfun-arena/betfun-arena/packages/websocket
npm run dev
# Indexer
cd /Users/arhansubasi/betfun-arena/betfun-arena/packages/indexer
npm run dev
๐ What Each Service Does
Frontend (Port 3000)
- Serves Next.js application
- All 15 pages
- UI/UX components
- Client-side logic
API (Port 3001)
- REST API endpoints
- Market data
- User data
- Trading operations
- Analytics
WebSocket (Port 3002)
- Real-time price updates
- Live notifications
- Order book updates
- Trade notifications
- Platform stats
Indexer (Background)
- Listens to Solana blockchain
- Indexes transactions
- Updates database
- Processes events
- Maintains state
๐ฏ Next Steps
For Demo/Testing
- โ Open http://localhost:3000
- โ Browse all pages
- โ Test navigation
- โ View mock data
For Development
- Make code changes
- See hot reload in action
- Check browser console
- Review terminal logs
For Production
- Stop dev servers
- Build production:
npm run build - Follow DEPLOYMENT_GUIDE.md
- Deploy to cloud
๐ Troubleshooting
Services Won't Start
# Check if ports are in use
lsof -i :3000,3001,3002
# Kill processes and restart
kill -9 <PID>
npm run dev
Module Errors
# Clear and reinstall
rm -rf node_modules package-lock.json
npm install
Build Errors
# Check TypeScript errors
npm run build
# Check lint errors
npm run lint
โจ ENJOY!
Your BetFun Arena platform is now running with:
- โ 15 beautiful pages
- โ Real-time updates
- โ Complete backend
- โ Full functionality
Open http://localhost:3000 and start exploring! ๐โ๏ธ๐
Status: ๐ข All Services Running
Frontend: http://localhost:3000
API: http://localhost:3001
WebSocket: http://localhost:3002
Have fun building the future of prediction markets! ๐