{"id":15043691,"url":"https://github.com/safakb/socketio-chat","last_synced_at":"2025-04-14T23:12:06.647Z","repository":{"id":255909399,"uuid":"853865733","full_name":"SafakB/socketio-chat","owner":"SafakB","description":"Socket.IO Chat with NodeJS + Mysql (Room Supported)","archived":false,"fork":false,"pushed_at":"2024-09-09T07:45:11.000Z","size":67,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-14T23:11:54.245Z","etag":null,"topics":["html","mysql","node","node-js","socket","socket-io"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/SafakB.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-09-07T18:46:29.000Z","updated_at":"2024-09-09T07:45:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"9a8e0e9c-db22-4a7c-ac07-63fdf8538798","html_url":"https://github.com/SafakB/socketio-chat","commit_stats":null,"previous_names":["safakb/socketio-chat"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SafakB%2Fsocketio-chat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SafakB%2Fsocketio-chat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SafakB%2Fsocketio-chat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SafakB%2Fsocketio-chat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SafakB","download_url":"https://codeload.github.com/SafakB/socketio-chat/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248975329,"owners_count":21192210,"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":["html","mysql","node","node-js","socket","socket-io"],"created_at":"2024-09-24T20:49:26.569Z","updated_at":"2025-04-14T23:12:06.630Z","avatar_url":"https://github.com/SafakB.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NodeJS socket.io Chat (Mysql Supported)\n[![NPM version](https://badge.fury.io/js/socketio-chat.svg)](https://www.npmjs.com/package/socket.io)\n![Downloads](https://img.shields.io/npm/dm/socketio-chat.svg?style=flat)\n\n![image](https://github.com/user-attachments/assets/007bd8b6-ef48-4a8b-a86f-daa21e7214ce)\n\n![image](https://github.com/user-attachments/assets/36e9dfef-717a-4b77-92f5-79703995a781)\n\nUsing NodeJS with socket.io\nCreating server and client with socket connection\nMysql Supported\n\n## 🚨 Important\n~~`token`~~ and `password`(md5) hashes not safety\n\n## 🔥 Features\n\n- Register\n- Login\n- Rooms\n- Users\n- Get online users list and count\n- Connect / Disconnect\n- Send Message\n\n## 📍 API Endpoints\n| Action  | Url | Request + Header  |\n| ------ | ------ | ------ |\n| 🟠 Login | /login | `{ \"username\" : \"\",\"password\" : \"\" }` | \n| 🟠 Register | /register | `{\"username\" : \"\",\"nickname\" :\"\",\"password\" : \"\" }` | \n| 🟠 Logout | /logout | `{ \"token\": \"\" }` | \n| 🟠 Check Token | /check-token  | `{ \"token\": \"\" }` |\n| 🟢 Get Rooms | /rooms  | `header: { \"Authorization\": \"Bearer \" }` |\n| 🟢 Room Messages | /room-messages/:id  | `header: { \"Authorization\": \"Bearer \" }` |\n| 🟠 Send Message to Room | /room-messages/:id  | `{ \"message\": \"\" }` `header: { \"Authorization\": \"Bearer \" }` |\n\n### 📋 Before\n- Create database\n- Import database `exampledb.sql`\n- Set `.env.example` and rename `.env`\n\n### 🏁 Start NodeJS Server\n\n```bash\nnpm install\nnode app.js\n```\n\n### 🔗 Go URL\n`http://localhost:3001/index.html`\n\n### 🧪 Test User\nUser : `test`\nPassword : `123456`\n\n## 🎯 Roadmap\n\n- Enabled Https server with certificate\n- ~~Token change JWT~~\n- ~~Fix multiple tab login~~\n- Add new room messages counts\n- Room message convert socket io `to` method\n\n\n#### Credits\n\n- Used [UI](https://codepen.io/ThomasDaubenton/pen/QMqaBN)\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsafakb%2Fsocketio-chat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsafakb%2Fsocketio-chat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsafakb%2Fsocketio-chat/lists"}