2.7 KiB
2.7 KiB
๐ START HERE - Complete Setup Guide
โ What's Fixed
- โ
Frontend package.json:
startnow usesnext dev(development mode) - โ Database: Made optional (app works without Prisma)
- โ Greenfield SDK: Made optional (app works without it)
- โ Wallet initialization: Better error handling
- โ Startup scripts: Both Bun and Node.js versions available
๐ฏ Quick Start (Recommended)
Option 1: Node.js (Recommended - avoids Bun/ethers v6 issue)
cd /Users/arhansubasi/immortal-bnb-1
./start-all-node.sh
Option 2: Manual Start
Terminal 1 - Backend:
cd /Users/arhansubasi/immortal-bnb-1
npx tsx src/index.ts
Terminal 2 - Frontend:
cd /Users/arhansubasi/immortal-bnb-1/frontend
bun run dev
๐ Prerequisites
- Node.js (v18+): โ You have v24.3.0
- tsx: โ Installed globally
- Bun: โ Installed (for frontend)
- .env file: โ Configured with test wallet
๐ง Known Issues & Solutions
Issue: Bun/ethers v6 Compatibility
Solution: Use Node.js for backend (./start-all-node.sh)
Issue: Prisma Client Not Generated
Solution: App works without it. To enable database features:
npx prisma generate
Issue: Greenfield SDK Errors
Solution: App works without it. Greenfield is optional.
๐ Access Points
Once running:
- Frontend: http://localhost:3000
- Backend API: http://localhost:3001
- Health Check: http://localhost:3001/health
- WebSocket: ws://localhost:3001/ws
๐ Troubleshooting
Services Not Starting
-
Check logs:
tail -f logs/backend.log tail -f logs/frontend.log -
Check ports:
lsof -i :3000 lsof -i :3001 -
Kill old processes:
pkill -f "tsx.*index" pkill -f "next"
Database Errors
The app is configured to work without a database. If you see Prisma errors, they're warnings and won't stop the app.
To enable database:
npx prisma generate
npx prisma migrate dev
โ Success Indicators
You'll know it's working when you see:
==================================================
๐ All Services Started Successfully!
==================================================
๐ Access Points:
Frontend: http://localhost:3000
Backend: http://localhost:3001
And you can access:
- http://localhost:3000 (should show landing page)
- http://localhost:3001/health (should return health status)
๐ฏ Next Steps
- Open http://localhost:3000 in your browser
- Click "Connect Wallet" (MetaMask)
- Start trading!
All services are now configured to start together! ๐