Terminal 1: cd studyhub-backend β npm install β npm run dev Terminal 2: cd studyhub-frontend β npm install β npm start
Credentials already set in .env β no editing needed.
cd studyhub-backend node test-connection.js (It will tell you exactly what's wrong)
Right-click PowerShell β "Run as Administrator" cd into studyhub-backend .\FIX-DNS.ps1
OR run manually: Set-DnsClientServerAddress -InterfaceAlias Wi-Fi -ServerAddresses 8.8.8.8,8.8.4.4 ipconfig /flushdns
npm run dev
Your laptop's DNS server (from your ISP) can't look up MongoDB's SRV record. Google DNS (8.8.8.8) always works. server.js already tries Google DNS automatically, but if it still fails the system DNS is overriding it β that's what FIX-DNS.ps1 fixes.