npm installMake sure your .env has these minimum requirements:
MONGO_URI=mongodb://localhost:27017/deenbridge
JWT_SECRET=deenbridge-super-secret-key-minimum-32-characters-long
NODE_ENV=development
PORT=5000npm run devYou should see:
β
Environment variables validated successfully
β
πΏ MongoDB connected successfully
ππ DeenBridge API running on port 5000
Logs will be auto-created in /logs:
logs/
βββ error-2025-10-24.log
βββ combined-2025-10-24.log
βββ http-2025-10-24.log
# Health check
curl http://localhost:5000/ping
# Try login (will be rate limited after 5 attempts)
curl -X POST http://localhost:5000/api/auth/login \
-H "Content-Type: application/json" \
-d '{"email":"test@test.com","password":"test"}'# Watch all logs
tail -f logs/combined-*.log
# Watch errors only
tail -f logs/error-*.logThat's it! Your secure backend is running! β¨