{"id":51157100,"url":"https://github.com/rami24t/collablite","last_synced_at":"2026-06-26T11:01:48.295Z","repository":{"id":336297009,"uuid":"1149095753","full_name":"Rami24t/collablite","owner":"Rami24t","description":"A React/Apollo/Node/Mongo project","archived":false,"fork":false,"pushed_at":"2026-02-12T02:08:33.000Z","size":275,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-12T11:58:06.771Z","etag":null,"topics":["apollo","client","expressjs","fullstack-development","gql","graphql","mongodb","mongoose","mvc","mvc-architecture","node","nodejs","npm","pnpm","react","server","software","typescript","vite","web-application"],"latest_commit_sha":null,"homepage":"https://collablite.onrender.com/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Rami24t.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-03T18:04:23.000Z","updated_at":"2026-02-12T02:08:37.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/Rami24t/collablite","commit_stats":null,"previous_names":["rami24t/flagship","rami24t/collablite"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Rami24t/collablite","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rami24t%2Fcollablite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rami24t%2Fcollablite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rami24t%2Fcollablite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rami24t%2Fcollablite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rami24t","download_url":"https://codeload.github.com/Rami24t/collablite/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rami24t%2Fcollablite/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34813782,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-26T02:00:06.560Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apollo","client","expressjs","fullstack-development","gql","graphql","mongodb","mongoose","mvc","mvc-architecture","node","nodejs","npm","pnpm","react","server","software","typescript","vite","web-application"],"created_at":"2026-06-26T11:01:47.344Z","updated_at":"2026-06-26T11:01:48.267Z","avatar_url":"https://github.com/Rami24t.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CollabLite\n\n[![React](https://img.shields.io/badge/React-18.x-blue)](https://reactjs.org/)\n[![Apollo GraphQL](https://img.shields.io/badge/Apollo%20GraphQL-4.x-purple)](https://www.apollographql.com/)\n[![Node.js](https://img.shields.io/badge/Node.js-20.x-green)](https://nodejs.org/)\n[![MongoDB](https://img.shields.io/badge/MongoDB-Atlas-green)](https://www.mongodb.com/)\n[![TypeScript](https://img.shields.io/badge/TypeScript-5.x-blue)](https://www.typescriptlang.org/)\n[![PNPM](https://img.shields.io/badge/PNPM-workspaces-yellow)](https://pnpm.io/)\n\n\n### My main purpose of this showcase project\n\n- ✅ to create, consume, and deploy a fully funcitonal fullstack apollo GraphQL project\n- ✅ To practice my TypeScript knowledge\n- ✅ To get to know and practice GraphQL, Apollo, Apollo server, Mutations, Queries, gql schemas (in this Fullstack MERN stack project)\n#### Overview\n- ✅ Fully Functional React Vite (TypeScript) Frontend\n- ✅ Fully Functional Node Express Apollo JS server (TypeScript) Backend\n- ✅ MongoDB (Atlas) integration\n- ✅ Basic project/task management (✅ Backend)\n- ✅ Read, Create and Delete Users using Apollo and GraphQL (queries and mutations) (✅ Frontend ; ✅ Backend)\n- ✅ Deployment: live-demo: https://collablite.onrender.com/\n\n\n## 🏗️ Architecture\n\n### Frontend\n- **React** - Modern React with hooks and concurrent features\n- **Apollo Client** - GraphQL client with real-time subscriptions\n- **Vite** - Lightning fast build tool and dev server\n- **TypeScript** - Full type safety across the application\n\n### Backend\n- **Apollo Server** - Production-ready GraphQL server\n- **Node.js 20+** - Latest LTS version with modern features\n- **MongoDB Atlas** - Fully-managed cloud database\n- **Mongoose ODM** - Elegant MongoDB object modeling\n\n### Real-Time Infrastructure\n- **GraphQL Subscriptions** - WebSocket-based real-time updates\n- **Optimistic UI** - Instant feedback while waiting for server response\n- **DataLoader** - Efficient batching and caching to prevent N+1 problems\n\n\n2026 Rami Al-Saadi\n\n\n# CollabLite: Real-Time Collaboration Platform\n\n\nA modern, real-time collaboration platform built with a cutting-edge tech stack and production-ready architecture. CollabLite enables teams to collaborate seamlessly with live document updates, task management, and presence indicators.\n\n## ✨ Features\n\n### 🎯 Core Features\n- **Real-Time Collaboration** - Live document updates with WebSocket connections\n- **Presence Indicators** - See who's online and what they're editing\n- **Task Management** - Create, assign, and track project tasks\n- **Team Projects** - Organize work into collaborative projects\n- **User Management** - Secure authentication and user profiles\n\n### ⚡ Real-Time Features (Next Phase)\n- 🔥 **Live Document Updates** - See changes as they happen\n- 👥 **\"Alex is editing...\"** - Real-time presence indicators\n- 💬 **Instant Notifications** - Get notified about important updates\n- 📊 **Collaborative Editing** - Multiple users can edit simultaneously\n\n\n## 📁 Project Structure\n\n```\ncollablite/\n├── apps/\n│   ├── server/                 # Backend GraphQL API\n│   │   ├── src/\n│   │   │   ├── models/         # MongoDB schemas (User, Project, Task)\n│   │   │   ├── graphql/        # GraphQL schema and resolvers\n│   │   │   ├── dataloaders/    # DataLoader instances for N+1 prevention\n│   │   │   └── index.ts        # Server entry point\n│   │   └── package.json\n│   │\n│   └── web/                    # Frontend React application\n│       ├── src/\n│       │   ├── components/     # React components\n│       │   ├── hooks/          # Custom React hooks\n│       │   ├── graphql/        # GraphQL queries and mutations\n│       │   └── main.tsx        # App entry point\n│       ├── index.html\n│       └── vite.config.ts\n│\n├── package.json                # Root package.json (monorepo)\n└── pnpm-workspace.yaml         # PNPM workspace configuration\n```\n\n## 🚀 Getting Started\n\n### Prerequisites\n- **Node.js 20+**\n- **PNPM 8+** (`npm install -g pnpm`)\n- **MongoDB Atlas Account** (Free tier works great!)\n\n### Installation\n\n1. **Clone the repository**\n   ```bash\n   git clone https://github.com/yourusername/collablite.git\n   cd collablite\n   ```\n\n2. **Install dependencies**\n   ```bash\n   pnpm install\n   ```\n\n3. **Set up environment variables**\n   ```bash\n   cd apps/server\n   cp .env.example .env\n   ```\n   \n   Edit `.env` with your MongoDB Atlas connection string:\n   ```env\n   MONGODB_URI=mongodb+srv://username:password@cluster.mongodb.net/database?retryWrites=true\u0026w=majority\n   PORT=4000\n   ```\n\n4. **Configure MongoDB Atlas**\n   - Create a free cluster at [MongoDB Atlas](https://www.mongodb.com/cloud/atlas)\n   - Whitelist IP address: `0.0.0.0/0` (or your specific IP)\n   - Create database user with read/write permissions\n   - Get your connection string\n\n### Running the Application\n\n**Development mode (both frontend and backend):**\n```bash\npnpm dev\n```\n\n**Backend only:**\n```bash\ncd apps/server\npnpm dev\n```\n\n**Frontend only:**\n```bash\ncd apps/web\npnpm dev\n```\n\n## 📡 API Documentation\n\n### GraphQL Endpoints\n- **Playground**: `http://localhost:4000/graphql`\n- **Health Check**: `http://localhost:4000/health`\n\n### Example Queries\n\n**Create a user:**\n```graphql\nmutation {\n  createUser(\n    username: \"johndoe\",\n    email: \"john@example.com\",\n    password: \"secure123\"\n  ) {\n    id\n    username\n    email\n    createdAt\n  }\n}\n```\n\n**Create a project:**\n```graphql\nmutation {\n  createProject(\n    name: \"Website Redesign\",\n    description: \"Redesign company website\",\n    ownerId: \"USER_ID\"\n  ) {\n    id\n    name\n    description\n    owner {\n      username\n    }\n  }\n}\n```\n\n**Real-time task updates (subscription):**\n```graphql\nsubscription {\n  taskUpdated(projectId: \"PROJECT_ID\") {\n    id\n    title\n    completed\n    assignee {\n      username\n    }\n  }\n}\n```\n\n## 🏆 Best Practices Implemented\n\n### Backend Architecture\n- **Thin Resolvers, Fat Services** - Business logic separated from GraphQL layer\n- **DataLoader Pattern** - Prevents N+1 query problems with efficient batching\n- **Schema-First Design** - GraphQL schema as source of truth\n- **Input Validation** - Comprehensive validation at resolver level\n- **Error Handling** - Structured error responses and logging\n\n### Frontend Architecture\n- **Component Composition** - Reusable, composable React components\n- **Custom Hooks** - Logic encapsulation and reusability\n- **Optimistic UI** - Immediate feedback for better UX\n- **Code Splitting** - Efficient bundle loading\n- **Type Safety** - End-to-end TypeScript integration\n\n### Real-Time Architecture (Next Phase)\n- **WebSocket Connections** - Efficient real-time communication\n- **Subscription Management** - Clean subscription lifecycle\n- **Connection Pooling** - Efficient resource utilization\n- **Graceful Degradation** - Fallbacks when real-time features unavailable\n\n## 🔧 Development Scripts\n\n### Root Level\n```bash\npnpm dev          # Start both frontend and backend\npnpm build        # Build all packages\npnpm test         # Run tests across packages\n```\n\n### Server\n```bash\ncd apps/server\npnpm dev          # Start GraphQL server\npnpm build        # Build TypeScript\npnpm start        # Start production server\n```\n\n### Web\n```bash\ncd apps/web\npnpm dev          # Start Vite dev server\npnpm build        # Build for production\npnpm preview      # Preview production build\n```\n\n## 📊 Performance Optimizations\n\n### Backend\n- **Query Batching** - Multiple queries in single request\n- **Caching Strategy** - Redis integration ready\n- **Connection Pooling** - Efficient database connections\n- **Request Batching** - DataLoader reduces database calls\n\n### Frontend\n- **Code Splitting** - Route-based and component-based\n- **Image Optimization** - Automatic format selection\n- **Bundle Analysis** - Built-in bundle size monitoring\n- **Caching Strategy** - Apollo Client cache configuration\n\n## 🔒 Security\n\n- **JWT Authentication** - Secure token-based authentication\n- **Input Sanitization** - Protection against injection attacks\n- **Rate Limiting** - API endpoint protection\n- **CORS Configuration** - Controlled cross-origin requests\n- **Environment Variables** - Sensitive data protection\n\n## 🧪 Testing\n\n```bash\n# Run all tests\npnpm test\n\n# Run tests with coverage\npnpm test:coverage\n\n# Run specific test suites\npnpm test:server\npnpm test:web\n```\n\n## 📈 Deployment\n\n### Backend Deployment (Render/Railway)\n```bash\n# 1. Push to GitHub\n# 2. Connect to Render/Railway\n# 3. Set environment variables\n# 4. Deploy!\n```\n\n### Frontend Deployment (Vercel/Netlify)\n```bash\n# 1. Build the frontend\ncd apps/web \u0026\u0026 pnpm build\n\n# 2. Deploy dist folder to your preferred platform\n```\n\n## 🤝 Contributing\n\n1. **Fork the repository**\n2. **Create a feature branch** (`git checkout -b feature/amazing-feature`)\n3. **Commit your changes** (`git commit -m 'Add amazing feature'`)\n4. **Push to the branch** (`git push origin feature/amazing-feature`)\n5. **Open a Pull Request**\n\n### Code Style\n- **TypeScript** - Strict mode enabled\n- **ESLint** - Consistent code style\n- **Prettier** - Automated code formatting\n- **Commit Hooks** - Pre-commit validation\n\n## 📚 Learning Resources\n\n- [GraphQL Official Docs](https://graphql.org/learn/)\n- [Apollo GraphQL Tutorial](https://www.apollographql.com/tutorials/)\n- [Mongoose Documentation](https://mongoosejs.com/docs/)\n- [React Documentation](https://reactjs.org/docs/getting-started.html)\n\n## 🎯 Roadmap\n\n### Phase 1 (Current)\n- Basic project/task management\n- Real-time updates with subscriptions\n- User authentication\n- MongoDB integration\n\n### Phase 2 (Future)\n- File uploads and document sharing\n- Advanced permission system\n- Real-time chat within projects\n- Calendar integration\n\n### Phase 3 (Future)\n- AI-powered task suggestions\n- Advanced analytics dashboard\n- Mobile applications\n- Third-party integrations (Slack, Google Calendar)\n\n\n## 🙏 Acknowledgments\n\n- [Apollo GraphQL](https://www.apollographql.com/) for amazing GraphQL tools\n- [MongoDB](https://www.mongodb.com/) for the free Atlas tier\n- [Vite](https://vitejs.dev/) for the incredible dev experience\n- [PNPM](https://pnpm.io/) for efficient monorepo management\n\n---\n\n*Real collaboration, simplified.*\n\n---\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/github/stars/Rami24t/collablite?style=social\" alt=\"GitHub Stars\"\u003e\n  \u003cimg src=\"https://img.shields.io/github/forks/Rami24t/collablite?style=social\" alt=\"GitHub Forks\"\u003e\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frami24t%2Fcollablite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frami24t%2Fcollablite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frami24t%2Fcollablite/lists"}