How rohanprasad007/collabdev works
Project Type and Purpose
• CollabDev is a full-stack, cross-platform collaborative development platform.
• It provides a Next.js-based website and an Electron/React-based desktop application, both using Firebase for authentication, real-time chat, file storage, and WebRTC for video calls.
File Structure
• Top level:
• pc/ – Electron desktop app (React CRA structure: public/, src/, firebase.js)
• website/ – Next.js v13 app (app/ directory with server/client components, pages under /app, plus components/, context/, model/, services/)
• doc/ – demo assets (video, screenshots)
• Key patterns:
• Both frontends share a component, context, model, service and utils layer for consistent UI/UX and business logic.
• pc/ uses a preload script to expose Node/Electron APIs to React.
• website/ uses Next.js server/client boundary, React Context API, and Webpack/static build.
• Configuration files point to Firebase and Tailwind CSS for styling.
README for Additional Insights
• Features: Google login (Firebase Auth), 1:1 WebRTC video calls, encrypted chat & file sharing (Firestore + Storage), task boards (Firestore), cross-platform desktop & web.
• Deployment:
• website runs on npm run dev under localhost:3000
• desktop runs via Electron’s development server
Elements
• Clear labels: e.g., “Next.js App”, “Electron Main”, “Firebase Auth”, “Firestore DB”.
• Authentication requests/responses
• Read/write operations to Firestore
• File upload/download to Storage
• WebRTC signaling and peer streams
• External APIs (gray)