{"id":24422599,"url":"https://github.com/kidiezyllex/messenger-clone","last_synced_at":"2026-06-29T19:31:29.812Z","repository":{"id":265324618,"uuid":"895441076","full_name":"kidiezyllex/messenger-clone","owner":"kidiezyllex","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-16T05:57:42.000Z","size":801,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-16T06:25:55.520Z","etag":null,"topics":["chatapp","dark-theme","real-time","texting","video-call"],"latest_commit_sha":null,"homepage":"https://luscsenger.vercel.app","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/kidiezyllex.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}},"created_at":"2024-11-28T08:06:59.000Z","updated_at":"2025-03-16T05:57:45.000Z","dependencies_parsed_at":"2024-11-28T23:21:11.574Z","dependency_job_id":"8feed946-1588-45fd-a11b-a67c3a27d87a","html_url":"https://github.com/kidiezyllex/messenger-clone","commit_stats":null,"previous_names":["kidiezyllex/messenger-clone"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kidiezyllex/messenger-clone","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kidiezyllex%2Fmessenger-clone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kidiezyllex%2Fmessenger-clone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kidiezyllex%2Fmessenger-clone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kidiezyllex%2Fmessenger-clone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kidiezyllex","download_url":"https://codeload.github.com/kidiezyllex/messenger-clone/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kidiezyllex%2Fmessenger-clone/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34941025,"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-29T02:00:05.398Z","response_time":58,"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":["chatapp","dark-theme","real-time","texting","video-call"],"created_at":"2025-01-20T10:14:39.938Z","updated_at":"2026-06-29T19:31:29.796Z","avatar_url":"https://github.com/kidiezyllex.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cpicture\u003e\n  \u003cimg src=\"https://res.cloudinary.com/drqbhj6ft/image/upload/v1736248592/learning-webdev-blog/portfolio/3_huctrt.jpg\" height=\"100\" alt=\"Logo for Luscsenger\"\u003e\n\u003c/picture\u003e\n\u003c/p\u003e\n\u003ch3 align=\"center\"\u003eLuscsenger: A Real-time Calling \u0026 Texting Application\u003c/h3\u003e\n\n[0. Accounts](#0-accounts)\n[1. Demo](#1-demo)\n[2. Tech Stack](#2-tech-stack)\n[3. Class Diagram](#3-class-diagram)\n[4. Run Project Locally](#4-run-project-locally)\n\n### 0. Accounts\n\n- **email**: taikhoan1@gmail.com (taikhoan1 --\u003e taikhoan12)\n\n- **password**: 1234567\n\n### 1. Demo\n\n### 2. Tech Stack\n\n- **Frontend**: Next.js, NextAuth.js, TypeScript, TailwindCSS, ShadCN/UI, Yet Another React Lightbox, Zustand, Pusher, Zegocloud, Uploadthing.\n- **Backend (API Routes)**: Next.js API Routes, TypeScript.\n- **ORM/class/Database GUI**: PostgreSQL, Prisma, AWS Neon Tech, Prisma Studio.\n\n### 3. Class Diagram\n\n![](https://res.cloudinary.com/drqbhj6ft/image/upload/v1736512848/learning-webdev-blog/messenger/messenger-class-diagram_utzmza.png)\n\n`User:`\n\n- User - Conversation (Many-to-many): Một người dùng có thể tham gia nhiều cuộc hội thoại, và một cuộc hội thoại có thể có nhiều người dùng.\n- User - Message (seenMessages) (Many-to-many): Một người dùng có thể xem nhiều tin nhắn, và một tin nhắn có thể được xem bởi nhiều người dùng.\n- User - Message (sentMessages) (One-to-many): Một người dùng có thể gửi nhiều tin nhắn, nhưng mỗi tin nhắn chỉ có một người gửi.\n- User - Conversation (groups) (One-to-many): Một người dùng có thể tạo nhiều nhóm hội thoại, nhưng mỗi nhóm chỉ có một người tạo.\n- User - Friend (One-to-many): Một người dùng có thể có nhiều bạn bè, nhưng mỗi quan hệ bạn bè chỉ liên kết với một người dùng.\n- User - FriendRequest (sentFriendRequests) (One-to-many): Một người dùng có thể gửi nhiều lời mời kết bạn, nhưng mỗi lời mời chỉ có một người gửi.\n- User - FriendRequest (receivedFriendRequests) (One-to-many): Một người dùng có thể nhận nhiều lời mời kết bạn, nhưng mỗi lời mời chỉ có một người nhận.\n\n`Conversation:`\n\n- Conversation - User (groupCreator) (Many-to-One): Nhiều cuộc hội thoại có thể có cùng một người tạo nhóm, nhưng mỗi cuộc hội thoại chỉ có một người tạo.\n- Conversation - User (users) (Many-to-many): Một cuộc hội thoại có thể có nhiều người dùng, và một người dùng có thể tham gia nhiều cuộc hội thoại.\n- Conversation - Message (pinnedMessages) (One-to-many): Một cuộc hội thoại có thể có nhiều tin nhắn được ghim, nhưng mỗi tin nhắn được ghim chỉ thuộc về một cuộc hội thoại.\n- Conversation - Message (messages) (One-to-many): Một cuộc hội thoại có thể có nhiều tin nhắn, nhưng mỗi tin nhắn chỉ thuộc về một cuộc hội thoại.\n\n`Message:`\n\n- Message - User (seen) (Many-to-many): Một tin nhắn có thể được xem bởi nhiều người dùng, và một người dùng có thể xem nhiều tin nhắn.\n- Message - Conversation (Many-to-One): Nhiều tin nhắn có thể thuộc về một cuộc hội thoại, nhưng mỗi tin nhắn chỉ nằm trong một cuộc hội thoại.\n- Message - Conversation (pinnedIn) (Many-to-One): Nhiều tin nhắn có thể được ghim trong một cuộc hội thoại, nhưng mỗi tin nhắn được ghim chỉ nằm trong một cuộc hội thoại.\n- Message - User (sender) (Many-to-One): Nhiều tin nhắn có thể được gửi bởi một người dùng, nhưng mỗi tin nhắn chỉ có một người gửi.\n- Message - Message (replyTo) (Many-to-One): Nhiều tin nhắn có thể là trả lời cho một tin nhắn, nhưng mỗi tin nhắn trả lời chỉ liên kết với một tin nhắn gốc.\n- Message - Message (replies) (One-to-many): Một tin nhắn có thể có nhiều tin nhắn trả lời, nhưng mỗi tin nhắn trả lời chỉ liên kết với một tin nhắn gốc.\n\n`Friend:`\n\n- Friend - User (Many-to-One): Nhiều mối quan hệ bạn bè có thể liên kết với một người dùng, nhưng mỗi mối quan hệ bạn bè chỉ giữa hai người dùng cụ thể.\n\n`FriendRequest:`\n\n- FriendRequest - User (sender) (Many-to-One): Nhiều lời mời kết bạn có thể được gửi bởi một người dùng, nhưng mỗi lời mời chỉ có một người gửi.\n- FriendRequest - User (receiver) (Many-to-One): Nhiều lời mời kết bạn có thể được nhận bởi một người dùng, nhưng mỗi lời mời chỉ có một người nhận.\n\n### 4. Run Project Locally\n\n1. Clone git\n\n```\ngit init\ngit clone https://github.com/kidiezyllex/messenger-clone.git\n```\n\n2. Install packages\n\n```\nnpm i\n```\n\n3. Create \".env.local\" file in root folder\n\n```\nDATABASE_URL=\n\nNEXTAUTH_URL=http://localhost:3000\nNEXTAUTH_SECRET=\"NEXTAUTH_SECRET\"\nGITHUB_ID=\nGITHUB_SECRET=\n\nGOOGLE_CLIENT_ID=\nGOOGLE_CLIENT_SECRET=\n\nNEXT_PUBLIC_ZEGO_APP_ID=\nNEXT_PUBLIC_ZEGO_SERVER_SECRET\n\nNEXT_PUBLIC_PUSHER_APP_KEY=\nPUSHER_APP_ID=\nPUSHER_SECRET\n\nUPLOADTHING_SECRET=\nUPLOADTHING_APP_ID\n```\n\n4. Run application\n\n```\nnpm run dev\n```\n\n5. Run Prisma\n\n```\n\u003c!-- Install \u0026 Initialize --\u003e\nnpm i prisma\nnpm i @prisma/client\nnpx prisma init\n\n\u003c!-- Run this cmd after changing schema.prisma file --\u003e\nnpx prisma generate\n\n\u003c!-- Push/update database --\u003e\nnpx prisma db push\n\n\u003c!-- Opens Prisma Studio --\u003e\nnpx prisma studio\n```\n\n6. Check for errors\n\n```\nnpm run build\nnpm run lint\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkidiezyllex%2Fmessenger-clone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkidiezyllex%2Fmessenger-clone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkidiezyllex%2Fmessenger-clone/lists"}