{"id":23229005,"url":"https://github.com/barcodehub/chat-node-mongodb","last_synced_at":"2026-05-03T07:43:10.507Z","repository":{"id":250649325,"uuid":"835054813","full_name":"Barcodehub/chat-node-mongodb","owner":"Barcodehub","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-29T16:20:14.000Z","size":4003,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-02T07:39:19.286Z","etag":null,"topics":["chat-application","command-line","messaging","socket-io","user-authentication"],"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/Barcodehub.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-07-29T04:25:14.000Z","updated_at":"2024-08-20T01:11:31.000Z","dependencies_parsed_at":"2025-04-05T18:43:59.058Z","dependency_job_id":null,"html_url":"https://github.com/Barcodehub/chat-node-mongodb","commit_stats":null,"previous_names":["barcodehub/chat-node-socket"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Barcodehub/chat-node-mongodb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Barcodehub%2Fchat-node-mongodb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Barcodehub%2Fchat-node-mongodb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Barcodehub%2Fchat-node-mongodb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Barcodehub%2Fchat-node-mongodb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Barcodehub","download_url":"https://codeload.github.com/Barcodehub/chat-node-mongodb/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Barcodehub%2Fchat-node-mongodb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32562118,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["chat-application","command-line","messaging","socket-io","user-authentication"],"created_at":"2024-12-19T01:15:52.538Z","updated_at":"2026-05-03T07:43:10.489Z","avatar_url":"https://github.com/Barcodehub.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Real-Time Chat with Node.js\n\n## Description\nThis project is a real-time chat application built with Node.js and Socket.IO. It allows users to send and receive instant messages through a simple command-line interface.\n\n## Features\n- Real-time communication between users\n- Easy-to-use command-line interface\n- User identification through unique IDs\n- Direct messaging between users\n\n## Technologies Used\n- Node.js\n- Socket.IO\n- Express.js\n\n# Install dependencies:\n\n  ```\nnpm install\n  ```\n\n# Usage\n\nStart the server:\n  ```\n   npm start\n  ```\n# Set up environment variables:\n- Create a `.env` file in the root directory\n- Add the following variables:\n  ```\n  PORT=3000\n  MONGODB_URI=mongodb://localhost:27017/chatapp\n  JWT_SECRET=your_jwt_secret\n  ```\n- Adjust the values according to your setup\n\n## Environment Variables\n- `PORT`: The port on which the server will run (default: 3000)\n- `MONGODB_URI`: The connection string for your MongoDB database\n\n# Follow the on-screen instructions:\n- Register some users at `http://localhost:3000/api/auth/login`\n- Open the terminal and type `node server.js`\n- Enter your user ID (username)\n- Open another terminal and repeat with a different user ID.\n- Enter the ID(username) of the user you want to send messages to\n- Type your messages and press Enter to send\n- Type \"exit\" to end the session\n\n## Project Structure\n- `server.js`: Main server configuration\n- `socket/chatHandler.js`: Socket.IO event handling\n- `test-client.js`: Test client for command-line interface\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarcodehub%2Fchat-node-mongodb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbarcodehub%2Fchat-node-mongodb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarcodehub%2Fchat-node-mongodb/lists"}