{"id":22882654,"url":"https://github.com/fskydev/mern-auth-chat","last_synced_at":"2025-05-07T05:01:25.699Z","repository":{"id":209496761,"uuid":"716151243","full_name":"fskydev/mern-auth-chat","owner":"fskydev","description":"Real-time chat application with authentication \u0026 authorization","archived":false,"fork":false,"pushed_at":"2023-12-10T01:26:10.000Z","size":278,"stargazers_count":9,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-31T06:32:07.981Z","etag":null,"topics":["authentication","authorization","cookie","example","expressjs","full-stack","jwt","mern","mongoose","nodejs","portfolio-item","reactjs","real-time","socket-io","starter","tailwindcss"],"latest_commit_sha":null,"homepage":"https://mern-auth-chat.onrender.com","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/fskydev.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}},"created_at":"2023-11-08T14:45:11.000Z","updated_at":"2025-01-07T06:04:55.000Z","dependencies_parsed_at":"2024-01-15T06:14:34.799Z","dependency_job_id":"cdb1627f-0d4f-4996-b410-27c87e50d233","html_url":"https://github.com/fskydev/mern-auth-chat","commit_stats":{"total_commits":29,"total_committers":1,"mean_commits":29.0,"dds":0.0,"last_synced_commit":"ffdbff1d547d5f860f825047dbc5039105e48e0b"},"previous_names":["fskydev/mern-auth-chat"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fskydev%2Fmern-auth-chat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fskydev%2Fmern-auth-chat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fskydev%2Fmern-auth-chat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fskydev%2Fmern-auth-chat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fskydev","download_url":"https://codeload.github.com/fskydev/mern-auth-chat/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252816937,"owners_count":21808704,"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":["authentication","authorization","cookie","example","expressjs","full-stack","jwt","mern","mongoose","nodejs","portfolio-item","reactjs","real-time","socket-io","starter","tailwindcss"],"created_at":"2024-12-13T18:18:44.484Z","updated_at":"2025-05-07T05:01:25.612Z","avatar_url":"https://github.com/fskydev.png","language":"JavaScript","readme":"# MERN Auth \u0026 Chat App\n\n### NodeJS - Express - JWT -  Socket.io - MongoDB - React - React Router - Context API - TailwindCSS\n\nThis is a perfect example for a MERN stack real-time chat application with authentication \u0026 authorization.\n\nBasically, it consists of 2 parts as the follows:\n- Real-time chat application using socket.io in node.js(Express)\n- JWT Authentication \u0026 Authorization stored in HTTP-only cookie\n\n## Demo url\nhttps://mern-auth-chat.onrender.com/\n\n![Screenshot 10](https://github.com/fskydev/mern-auth-chat/assets/61609164/8221d394-1d09-485a-8411-2d3ab3067f42)\n\n\n## Usage\n- Create a MongoDB database and obtain your `MongoDB URI` - [MongoDB Atlas](https://www.mongodb.com/cloud/atlas/register)\n### Clone the project\n\n```\ngit clone git@github.com:fskydev/mern-auth-chat.git\n```\n\n### Env Variables\n\nRename the `server/.env.example` file to `.env` and add the following\n\n```\nPORT=5000\nMONGO_URI=\nJWT_SECRET_KEY=\n```\n\nChange the JWT_SECRET to what you want\n\n### Install Dependencies (backend \u0026 frontend)\n```\ncd server\nnpm install\n```\n```\ncd socket\nnpm install\n```\n```\ncd client\nnpm install\n```\n### Run locally\n\n```\n# Run API server\ncd server\nnpm run dev\n```\n```\n# Run socket server\ncd socket\nnpm run dev\n```\n```\n# Run frontend\ncd client\nnpm run dev\n```\n## Build \u0026 Deploy\n```\ncd client/ \u0026\u0026 npm install \u0026\u0026 npm run build \u0026\u0026 cd .. \u0026\u0026 cd server/ \u0026\u0026 npm install \u0026\u0026 npm run start\n```\n\n## Screenshots\n#### Private Chat\n![Screenshot 10](https://github.com/fskydev/mern-auth-chat/assets/61609164/8221d394-1d09-485a-8411-2d3ab3067f42)\n![Screenshot 01](https://github.com/fskydev/mern-auth-chat/assets/61609164/462a575f-aa61-4438-b04e-a60e55dffa38)\n\n#### Login \u0026 Register\n\n![Screenshot 02](https://github.com/fskydev/mern-auth-chat/assets/61609164/51573ef8-157d-42ff-a56c-05675955af0f)\n![Screenshot 03](https://github.com/fskydev/mern-auth-chat/assets/61609164/83c359a7-76a4-4def-9d0b-e29b75317030)\n\n#### Mobile Responsiveness, Notifications, Potential Chats\n\n![Screenshot 05](https://github.com/fskydev/mern-auth-chat/assets/61609164/8773b161-aab8-4214-bafb-1524c32f2566)\n![Screenshot 06](https://github.com/fskydev/mern-auth-chat/assets/61609164/3fbc2c50-3a78-4d44-af82-d5dd775ab8a0)\n![Screenshot 07](https://github.com/fskydev/mern-auth-chat/assets/61609164/14c0185f-f1c8-4be7-8591-275feedee005)\n![Screenshot 08](https://github.com/fskydev/mern-auth-chat/assets/61609164/0e9952a8-9b89-4676-871f-4b21e1527656)\n![Screenshot 09](https://github.com/fskydev/mern-auth-chat/assets/61609164/1662c49e-5ee5-4ede-8e7d-69f1da180fb6)\n\nHappy coding 🔥\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffskydev%2Fmern-auth-chat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffskydev%2Fmern-auth-chat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffskydev%2Fmern-auth-chat/lists"}