How ankit-gope007/vibechat works
Project type and purpose
• From the README and file tree, this is a full-stack real-time one-to-one chat application (“Vibe Chat”) with a Next.js + Tailwind CSS frontend, a Node.js/Express + Socket.IO backend, and MongoDB for persistence.
• Key features: unique username, instant messaging via WebSockets, responsive UI.
File structure
• Top level:
• client/ – Next.js app (app directory, components, API routes, public assets, styles, config files)
• server/ – Express API (controllers, routes, models, middlewares, utils, db init)
• Frontend patterns: Next.js App Router (src/app/*), custom Provider, ProtectedRoute, global middleware for auth, Socket.IO client.
• Backend patterns: MVC-like separation (routes → controllers → models), error handling utils (ApiError, asyncHandler), middleware for auth & file upload, Socket.IO server logic likely in app.js or index.js.
• Config/build/deploy files: package.json in both, lint/build configs, deployment targets (Vercel for client, Render for server).
README for additional insights
• Tech stack confirms Next.js, Tailwind CSS, Node.js, Express, Socket.IO, MongoDB.
• Live demo hosts front and back separately.
• Mentions future media sharing and group chat, hinting at extensibility points.