{"id":15132991,"url":"https://github.com/mitri-dvp/real-time-chat-demo","last_synced_at":"2026-02-06T08:38:28.950Z","repository":{"id":253883626,"uuid":"844160838","full_name":"mitri-dvp/real-time-chat-demo","owner":"mitri-dvp","description":"Real-Time Chat Application Demo","archived":false,"fork":false,"pushed_at":"2024-08-20T02:17:57.000Z","size":984,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T21:45:26.428Z","etag":null,"topics":["express","nodejs","reactjs","socket-io","tailwindcss","tanstack-router","typescript","vite"],"latest_commit_sha":null,"homepage":"https://real-time-chat-demo.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/mitri-dvp.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-08-18T15:10:33.000Z","updated_at":"2024-08-20T04:50:41.000Z","dependencies_parsed_at":"2024-08-20T06:31:21.511Z","dependency_job_id":"3ceb8881-c26a-45dc-90ef-89ac8ec61451","html_url":"https://github.com/mitri-dvp/real-time-chat-demo","commit_stats":null,"previous_names":["mitri-dvp/real-time-chat-demo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mitri-dvp/real-time-chat-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitri-dvp%2Freal-time-chat-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitri-dvp%2Freal-time-chat-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitri-dvp%2Freal-time-chat-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitri-dvp%2Freal-time-chat-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mitri-dvp","download_url":"https://codeload.github.com/mitri-dvp/real-time-chat-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitri-dvp%2Freal-time-chat-demo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268022140,"owners_count":24182808,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-31T02:00:08.723Z","response_time":66,"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":["express","nodejs","reactjs","socket-io","tailwindcss","tanstack-router","typescript","vite"],"created_at":"2024-09-26T04:42:13.766Z","updated_at":"2026-02-06T08:38:28.896Z","avatar_url":"https://github.com/mitri-dvp.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Real-Time Chat Application Monorepo\n\nThis monorepo contains the code for a Real-Time Chat Application, consisting of a Client using React.js, a Server written in Node.js, and a Shared folder for common utilities and types.\n\n![Real-Time Chat Demo](./preview.gif)\n\n## Project Structure\n\n```\nroot/\n├── client/\n├── server/\n└── shared/\n```\n\n### 1. Client\n\nThe `client/` directory contains the frontend of the Real-Time Chat Application. It is built using:\n\n- **Vite**: Fast and more efficient build tool.\n- **React**: Component-based user interface library.\n- **TypeScript**: Static typing syntax for JavaScript.\n- **TanStack Router**: Modern, typesafe and declarative routing solution.\n- **Tailwind CSS**: Utility-first CSS library.\n- **Socket.IO Client**: Real-time, bidirectional and event-based communicati\n  on solution.\n\n**Key Features:**\n\n- Real-time messaging with modern and responsive user interface.\n- Automatic user registration on first connection, assigning a unique userID and each user is connected to the global chat room.\n\n### 2. Server\n\nThe `server/` directory contains the backend of the Real-Time Chat Application. It is built using:\n\n- **TypeScript**: Static typing syntax for JavaScript.\n- **Express**: Lightweight and flexible Node.js server framework.\n- **Socket.io**: Real-time, bidirectional and event-based communication solution.\n\n**Key Features:**\n\n- Handles user connections, disconnections, and real-time messages.\n- Integrated with the client by emitting socket events.\n\n### 3. Shared\n\nThe `shared/` directory contains common utilities, types, and constants used across both the client and server. This includes:\n\n- **TypeScript Types**: Shared types like the `Message` interfaces.\n- **Socket Events**: Enumerations for Socket.io event names to ensure consistency across the application.\n\n### Setup\n\nTo get started with the project:\n\n1. Clone the repository.\n2. Navigate to the `client/` and `server/` directories and run:\n\n   ```bash\n   npm install\n   ```\n\n3. Start the development servers for both the client and server by running:\n\n   ```bash\n   npm run dev\n   ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitri-dvp%2Freal-time-chat-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmitri-dvp%2Freal-time-chat-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitri-dvp%2Freal-time-chat-demo/lists"}