Tech Stack: Node.js, Express, MongoDB, Mongoose, Zod, JWT, bcrypt, ws (WebSocket)
Duration: 3 hours
Build a complete backend system with:
Key Assumption: Only ONE class session can be active at a time on WebSocket. No room management needed - all broadcasts go to all connected clients.
{
"success": true,
"data": { ... }
}
{
"success": false,
"error": "Error message",
}
All HTTP responses MUST follow this format!