🖥️ Local Backend Launcher

Run the backend on this machine — no Railway account needed

🟢 Backend Status
Checking…
📋 First-Time Setup (5 minutes)
1
Install Node.js (LTS)
Download and install from nodejs.org. Verify with: node --version
2
Clone or download the repository
git clone https://github.com/barbrickdesign/barbrickdesign.github.io.git
Or download the ZIP from GitHub → Code → Download ZIP.
3
Install backend dependencies
Open a terminal in the repo folder:
cd backend && npm install
4
(Optional) Configure .env
Copy .env.example → .env and fill in your API keys & GATEWAY_TOKEN.
5
Start the backend
From inside backend/: node server-main.js
From the repo root: npm start
The server starts on port 8080.
6
Connect the dashboard
Click ⚡ Connect Dashboard to This Backend above. The dashboard switches to ws://localhost:8080.
Auto-restart tip: Use node backend-auto-start.js from the repo root for automatic health-monitoring and crash recovery. Full guide: LOCAL_BACKEND_HOW_TO.md
🔧 Troubleshooting
Symptom Fix
❌ Not reachable Make sure node server-main.js is running
⚠️ Port in use Stop the other process or change PORT in server-main.js
MODULE_NOT_FOUND Run npm install inside the backend/ folder
CORS error in console Access dashboard via https:// (GitHub Pages), not file://