🟢 Backend Status
Checking…
📋 First-Time Setup (5 minutes)
1
2
Clone or download the repository
Or download the ZIP from GitHub → Code → Download ZIP.
git clone https://github.com/barbrickdesign/barbrickdesign.github.io.gitOr download the ZIP from GitHub → Code → Download ZIP.
3
Install backend dependencies
Open a terminal in the repo folder:
Open a terminal in the repo folder:
cd backend && npm install
4
(Optional) Configure .env
Copy
Copy
.env.example → .env and fill in your API keys & GATEWAY_TOKEN.
5
Start the backend
From inside
From the repo root:
The server starts on port 8080.
From inside
backend/: node server-main.jsFrom the repo root:
npm startThe server starts on port 8080.
6
Connect the dashboard
Click ⚡ Connect Dashboard to This Backend above. The dashboard switches to
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:// |