immortal-bnb/QUICK-FIX.md
2025-11-21 05:05:57 +03:00

62 lines
1.4 KiB
Markdown

# โšก Quick Fix Guide
## Issue: You're in the wrong directory
The startup scripts are in the **root directory**, not the frontend directory.
## โœ… Solution: Run from Root
```bash
# Go to root directory
cd /Users/arhansubasi/immortal-bnb-1
# Then run the startup script
./start-all.sh
```
## ๐Ÿ”ง What I Fixed
1. **Frontend package.json**: Changed `start` to use `next dev` (development mode) instead of `next start` (production mode)
2. **Startup script**: Fixed to use `bun run dev` properly
3. **Scripts location**: Both `start-all.sh` and `start-all-node.sh` are in the root directory
## ๐Ÿ“‹ Correct Usage
### From Root Directory:
```bash
cd /Users/arhansubasi/immortal-bnb-1
./start-all.sh # Uses Bun (may have ethers v6 issue)
./start-all-node.sh # Uses Node.js (recommended)
```
### Or use npm/bun scripts:
```bash
cd /Users/arhansubasi/immortal-bnb-1
bun start # Runs start-all.sh
```
### Manual Start (if scripts don't work):
```bash
# Terminal 1: Backend
cd /Users/arhansubasi/immortal-bnb-1
bun run src/index.ts
# Terminal 2: Frontend
cd /Users/arhansubasi/immortal-bnb-1/frontend
bun run dev
```
## ๐ŸŽฏ Current Status
- โœ… Scripts fixed and in root directory
- โœ… Frontend now uses dev mode (no build needed)
- โœ… Services starting from root directory
## ๐Ÿ“Š Access Points
Once running:
- **Frontend**: http://localhost:3000
- **Backend**: http://localhost:3001
- **Health**: http://localhost:3001/health