{"id":27018965,"url":"https://github.com/abdulrahman-04/tssocketio","last_synced_at":"2026-04-12T15:44:25.064Z","repository":{"id":286119832,"uuid":"960425108","full_name":"AbdulRahman-04/tsSocketIo","owner":"AbdulRahman-04","description":"This is a Real Time Chat app using TypeScript, Nodejs , Express.js and Socket.IO","archived":false,"fork":false,"pushed_at":"2025-04-04T12:26:15.000Z","size":18,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-04T13:32:32.309Z","etag":null,"topics":["expressjs","nodejs","socket-io","typescript"],"latest_commit_sha":null,"homepage":"","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/AbdulRahman-04.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":"2025-04-04T12:13:13.000Z","updated_at":"2025-04-04T12:26:38.000Z","dependencies_parsed_at":"2025-04-04T13:32:37.178Z","dependency_job_id":"b48ca860-2c6c-477d-aebb-22fbadeb69c7","html_url":"https://github.com/AbdulRahman-04/tsSocketIo","commit_stats":null,"previous_names":["abdulrahman-04/tssocketio"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbdulRahman-04%2FtsSocketIo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbdulRahman-04%2FtsSocketIo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbdulRahman-04%2FtsSocketIo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbdulRahman-04%2FtsSocketIo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AbdulRahman-04","download_url":"https://codeload.github.com/AbdulRahman-04/tsSocketIo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248082633,"owners_count":21044945,"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","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":["expressjs","nodejs","socket-io","typescript"],"created_at":"2025-04-04T17:17:39.672Z","updated_at":"2026-04-12T15:44:25.008Z","avatar_url":"https://github.com/AbdulRahman-04.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Socket.io Chat Application\n\nThis is a real-time chat application built using **TypeScript, Express, and Socket.io**. The project follows a structured folder setup for better maintainability.\n\n## Project Structure\n```\nTSSOCKET_IO_PROJECT/\n│── server/\n│   ├── node_modules/\n│   ├── src/\n│   │   ├── public/\n│   │   │   ├── index.html\n│   │   ├── app.ts\n│   ├── .gitignore\n│   ├── nodemon.json\n│   ├── package.json\n│   ├── package-lock.json\n│   ├── tsconfig.json\n```\n\n## Prerequisites\nEnsure you have the following installed:\n- **Node.js** (v16+ recommended)\n- **TypeScript**\n- **Socket.io**\n\n## Installation\n1. Clone this repository:\n   ```sh\n   git clone https://github.com/your-repo/socketio-chat-app.git\n   ```\n2. Navigate to the project directory:\n   ```sh\n   cd TSSOCKET_IO_PROJECT/server\n   ```\n3. Install dependencies:\n   ```sh\n   npm install\n   ```\n\n## Running the Server\nTo start the server, use:\n```sh\nnpm run dev\n```\nThis will start the server at **http://localhost:5015/**.\n\n## Folder \u0026 File Explanation\n### 1. `app.ts` (Backend)\nThis file initializes the **Express server** and configures **Socket.io** for real-time communication.\n\n- Establishes a WebSocket connection with clients.\n- Listens for user messages and broadcasts them to all connected clients.\n- Serves static files from `public/`.\n\n### 2. `public/index.html` (Frontend)\nThe frontend file contains:\n- A simple chat UI.\n- **Socket.io client script** for sending and receiving messages.\n- Prompts users for a username before joining the chat.\n\n### 3. `tsconfig.json`\nTypeScript configuration file ensuring compatibility and type safety.\n\n## Features\n✅ Real-time messaging using **Socket.io**\n✅ TypeScript-based backend for scalability\n✅ Simple UI for sending and receiving messages\n✅ Auto-reconnect support\n\n## Deployment\nFor production, build the TypeScript files and run the compiled JavaScript:\n```sh\nnpm run build\nnpm start\n```\n\nPlease Feel free to modify and use it in your projects!\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdulrahman-04%2Ftssocketio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabdulrahman-04%2Ftssocketio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdulrahman-04%2Ftssocketio/lists"}