{"id":25519444,"url":"https://github.com/almahdy-byte/socialapp-backend","last_synced_at":"2026-04-12T00:09:40.151Z","repository":{"id":278344480,"uuid":"935312288","full_name":"almahdy-byte/socialApp-Backend","owner":"almahdy-byte","description":"SocialApp Backend ","archived":false,"fork":false,"pushed_at":"2025-06-25T19:12:09.000Z","size":688,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-24T11:43:38.450Z","etag":null,"topics":["bcrypt","cloudinary","cryptojs","express","graphql","jwt","mongoose","multer","nodejs","nodemailer","pagination","social-login","socket","socket-io"],"latest_commit_sha":null,"homepage":"https://social-app-backend-git-main-mohamed-almahdys-projects.vercel.app/","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/almahdy-byte.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,"zenodo":null}},"created_at":"2025-02-19T08:42:08.000Z","updated_at":"2025-06-25T19:22:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"60c1205b-e006-4fe6-8a52-2ca9eb9801c8","html_url":"https://github.com/almahdy-byte/socialApp-Backend","commit_stats":null,"previous_names":["almahdy-byte/socialapp-backend"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/almahdy-byte/socialApp-Backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/almahdy-byte%2FsocialApp-Backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/almahdy-byte%2FsocialApp-Backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/almahdy-byte%2FsocialApp-Backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/almahdy-byte%2FsocialApp-Backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/almahdy-byte","download_url":"https://codeload.github.com/almahdy-byte/socialApp-Backend/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/almahdy-byte%2FsocialApp-Backend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276033092,"owners_count":25573478,"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","status":"online","status_checked_at":"2025-09-20T02:00:10.207Z","response_time":63,"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":["bcrypt","cloudinary","cryptojs","express","graphql","jwt","mongoose","multer","nodejs","nodemailer","pagination","social-login","socket","socket-io"],"created_at":"2025-02-19T17:19:39.969Z","updated_at":"2025-09-20T02:21:10.052Z","avatar_url":"https://github.com/almahdy-byte.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📱 Social Media App - Backend (Node.js \u0026 Express)\n\nThis is the backend service for a **Social Media Application** that allows users to register, connect, share media content, and chat in real-time. The application offers a mix of **RESTful** and **GraphQL** APIs, supports media uploads, and implements strong authentication and real-time communication.\n\n---\n\n## 🛠️ Technologies Used\n\n- **Node.js**\n- **Express.js**\n- **MongoDB** + **Mongoose**\n- **GraphQL**\n- **Socket.io**\n- **Cloudinary** + **Multer** (Media Uploads)\n- **Bcrypt** \u0026 **Crypto** (Password Security)\n- **Nodemailer** (Email Support)\n- **JWT** (Authentication)\n- **Google OAuth** (Social Login)\n- **Pagination**\n- **Helmet**, **CORS**, **Rate Limiter** (Security Enhancements)\n\n---\n\n## 🌟 Features\n\n### 👤 Users\n- Register and login using email/password or Google account\n- View and edit profile information\n- Upload profile pictures and other media\n- Follow/unfollow users\n- Explore posts from followed users\n\n### 📝 Posts \u0026 Media\n- Create, update, and delete posts\n- Upload media (images/videos) using **Multer** and store them in **Cloudinary**\n- Like, comment, and engage with posts\n\n### 💬 Messaging\n- Real-time 1-on-1 messaging via **Socket.io**\n- Includes typing indicators and instant message delivery\n- Conversation history and notifications support\n\n---\n\n## 🔐 Security \u0026 Authentication\n\n- Passwords are hashed using **Bcrypt**\n- Authentication via **JWT** tokens\n- Optional login via **Google OAuth**\n- API protected using **Helmet**, **CORS**, and **Rate Limiter**\n\n---\n\n## 📤 File \u0026 Media Uploads\n\n- Handled with **Multer**\n- Stored and served securely using **Cloudinary**\n\n---\n\n## 🚀 API Access\n\n- Clean and modular **RESTful API**\n- Optional **GraphQL** API for flexible and efficient data queries\n- Pagination implemented on feeds, users, and comments\n\n---\n\n## 📬 Realtime Chat\n\n- Built using **Socket.io**\n- Real-time private messaging with instant delivery\n- Includes **typing indicators** and message notifications\n\n---\n\n## 🧪 Setup \u0026 Run\n\n```bash\n# 1. Clone the repository\ngit clone https://github.com/your-username/social-media-backend.git\n\n# 2. Install dependencies\ncd social-media-backend\nnpm install\n\n# 3. Create a .env file based on .env.example\n# Server\nPORT=3000\n\n# Database\nDB_URI=mongodb://localhost:27017/socialApp\n\n# Security\nSECRET_KEY=BAL7\nSALT=8\n\n# JWT Tokens\nUSER_ACCESS_TOKEN=your_user_access_token\nUSER_REFRESH_TOKEN=your_user_refresh_token\nADMIN_ACCESS_TOKEN=your_admin_access_token\nADMIN_REFRESH_TOKEN=your_admin_refresh_token\n\n# Google OAuth\nCLIENT_ID=your_google_client_id\n\n# Cloudinary\nCLOUD_NAME=your_cloudinary_name\nAPI_KEY=your_cloudinary_api_key\nAPI_SECRET=your_cloudinary_api_secret\n\n#email's sender\nEMAIL = your_email\nPASSWORD= your_password\n\n# AI (Optional)\nGEMINI_AI_KEY=your_gemini_api_key\n\n\n\n# 4. Start the development server\nnpm run dev\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falmahdy-byte%2Fsocialapp-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falmahdy-byte%2Fsocialapp-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falmahdy-byte%2Fsocialapp-backend/lists"}