62 lines
1.4 KiB
Markdown
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
|
|
|