immortal-bnb/START-HERE.md
2025-11-21 05:05:57 +03:00

2.7 KiB

๐Ÿš€ START HERE - Complete Setup Guide

โœ… What's Fixed

  1. โœ… Frontend package.json: start now uses next dev (development mode)
  2. โœ… Database: Made optional (app works without Prisma)
  3. โœ… Greenfield SDK: Made optional (app works without it)
  4. โœ… Wallet initialization: Better error handling
  5. โœ… Startup scripts: Both Bun and Node.js versions available
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

  1. Node.js (v18+): โœ… You have v24.3.0
  2. tsx: โœ… Installed globally
  3. Bun: โœ… Installed (for frontend)
  4. .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:

๐Ÿ› Troubleshooting

Services Not Starting

  1. Check logs:

    tail -f logs/backend.log
    tail -f logs/frontend.log
    
  2. Check ports:

    lsof -i :3000
    lsof -i :3001
    
  3. 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:

๐ŸŽฏ Next Steps

  1. Open http://localhost:3000 in your browser
  2. Click "Connect Wallet" (MetaMask)
  3. Start trading!

All services are now configured to start together! ๐Ÿš€