{"id":20438852,"url":"https://github.com/rohanvron/chatapp-mern","last_synced_at":"2026-04-02T03:08:01.631Z","repository":{"id":280763433,"uuid":"823033706","full_name":"rohanvron/ChatApp-MERN","owner":"rohanvron","description":"ChatApp is a real-time messaging application built on modern web technology. It provides a seamless and secure communication experience with features such as user authentication, email verification, password recovery, and real-time chat functionality","archived":false,"fork":false,"pushed_at":"2024-11-08T10:19:37.000Z","size":9233,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-03T14:30:30.675Z","etag":null,"topics":["api","authentication","bcrypt","chat-application","chatapp","css","express","javascript","jwt","mern-stack","mongodb","nodejs","react","socket-io","tailwindcss","web-development"],"latest_commit_sha":null,"homepage":"https://chatapp-mern-lnck.onrender.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rohanvron.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-02T09:49:01.000Z","updated_at":"2024-11-08T10:19:41.000Z","dependencies_parsed_at":"2025-03-05T07:37:05.700Z","dependency_job_id":null,"html_url":"https://github.com/rohanvron/ChatApp-MERN","commit_stats":null,"previous_names":["rohanvron/chatapp-mern"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rohanvron/ChatApp-MERN","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohanvron%2FChatApp-MERN","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohanvron%2FChatApp-MERN/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohanvron%2FChatApp-MERN/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohanvron%2FChatApp-MERN/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rohanvron","download_url":"https://codeload.github.com/rohanvron/ChatApp-MERN/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohanvron%2FChatApp-MERN/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31294851,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T01:43:37.129Z","status":"online","status_checked_at":"2026-04-02T02:00:08.535Z","response_time":89,"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":["api","authentication","bcrypt","chat-application","chatapp","css","express","javascript","jwt","mern-stack","mongodb","nodejs","react","socket-io","tailwindcss","web-development"],"created_at":"2024-11-15T09:13:37.785Z","updated_at":"2026-04-02T03:08:01.601Z","avatar_url":"https://github.com/rohanvron.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ChatApp\n\nChatApp is a real-time messaging application built on modern web technology. It provides a seamless and secure communication experience with features such as user authentication, email verification, password recovery, and real-time chat functionality\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./frontend/src/assets/ChatUI.PNG\"\u003e\n\u003c/p\u003e\n\n## Features:\n\n* User Authentication (Signup, Login, Logout)\n* Email Verification\n* Forget Password Functionality\n* Real-time Messaging\n* Online User Status\n\n## Tech Stack:\n\n* **Frontend:** React.js\n* **Backend:** Node.js with Express.js\n* **Database:** MongoDB\n* **Real-time Communication:** Socket.io\n* **Styling:** Tailwind CSS\n* **Email Service:** SendinBlue (Brevo)\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./frontend/src/assets/Login\u0026Signup.png\"\u003e\n\u003c/p\u003e\n\n## Key Components\n\n* **User Authentication:** User authentication is implemented using JWT (JSON Web Tokens) for secure user identification and authorization.\n\n* **Email Verification:** Email verification is implemented using SendinBlue's API for email verification.\n\n* **Password Recovery:** Password recovery functionality is implemented using SendinBlue's API for password reset.\n\n* **Real-time Messaging:** Real-time messaging is implemented using Socket.io for bi-directional communication between the client and server.\n\n* **Cleanup Task for Unverified Users:** Yhe app includes a task that deletes unverified users after 15 minutes using cron. To keep the database clean and avoid issues with re-registration, This ensures that unverified accounts are removed, making the email available for reuse without showing errors to users trying to register again.\n\n```javascript\nimport cron from 'node-cron';\nimport User from '../models/user.model.js';\n\nconst cleanupUnverifiedUsers = async () =\u003e {\n  const fifteenMinutesAgo = new Date(Date.now() - 15 * 60 * 1000);\n  const result = await User.deleteMany({\n    isVerified: false,\n    createdAt: { $lt: fifteenMinutesAgo }\n  });\n  console.log(`Cleaned up ${result.deletedCount} unverified users`);\n};\n\nexport const startCleanupTask = () =\u003e {\n  cron.schedule('*/15 * * * *', cleanupUnverifiedUsers);\n};\n\n```\n\u003cp align=\"center\"\u003e\n  \u003cimg  src=\"./frontend/src/assets/HomeUI.PNG\"\u003e\n\u003c/p\u003e\n\n## Installation and Setup\n\n1. Clone the repository\n2. Install dependencies for both frontend and backend\n3. Set up environment variables (MongoDB URI, JWT secret, email service credentials)\n4. Run the backend server: `npm run server`\n5. Run the frontend development server: `npm run dev`\n\n## Contributing\n\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\n## License \n\nThis project is licensed under the MIT License. See the LICENSE file for more details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frohanvron%2Fchatapp-mern","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frohanvron%2Fchatapp-mern","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frohanvron%2Fchatapp-mern/lists"}