You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A production-ready Google Docs-style collaborative document editor built with React, Node.js, MongoDB, and Socket.io.
Live at : https://collab-doc-rose.vercel.app/
✨ Features
Real-Time Collaboration — Multiple users editing simultaneously with live sync
Rich Text Editor — TipTap-powered with bold, italic, headings, lists, code blocks, links, and more
Live Presence — See who's in the document with colored user indicators
Auto Save — Documents auto-save every 5 seconds via WebSocket
Version History — Full history with restore capability
Comments System — Inline comments with replies and resolve/unresolve
Document Sharing — Invite collaborators by email with viewer/editor roles
Dark Mode — Full dark/light theme support
JWT Auth — Secure signup/login with bcrypt password hashing
Protected Routes — Frontend and backend route protection
cd backend
# Install dependencies
npm install
# Set up environment variables
cp .env.example .env
# Edit .env with your values (see Environment Variables section)# Start development server
npm run dev
3. Frontend Setup
cd frontend
# Install dependencies
npm install
# Set up environment variables
cp .env.example .env
# Edit .env with your values# Start development server
npm run dev
NODE_ENV=developmentPORT=5000# MongoDBMONGODB_URI=mongodb://localhost:27017/collab-docs# Or MongoDB Atlas:# MONGODB_URI=mongodb+srv://<user>:<password>@cluster.mongodb.net/collab-docs# JWT (use a strong random string in production)JWT_SECRET=your_super_secret_jwt_key_change_this_in_production_min_32_charsJWT_EXPIRES_IN=7d# Frontend URL (for CORS)CLIENT_URL=http://localhost:5173# Rate LimitingRATE_LIMIT_WINDOW_MS=900000RATE_LIMIT_MAX=100