{"id":25968972,"url":"https://github.com/parmodkumar28/postaway-ii","last_synced_at":"2026-04-02T04:45:41.969Z","repository":{"id":207883364,"uuid":"720146925","full_name":"ParmodKumar28/Postaway-II","owner":"ParmodKumar28","description":"Social Media Backend REST-API","archived":false,"fork":false,"pushed_at":"2023-11-26T10:13:28.000Z","size":107,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-10T23:11:35.373Z","etag":null,"topics":["backend-api","expressjs","jwt-authentication","mongodb","mongoose","nodejs","socialmedia"],"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/ParmodKumar28.png","metadata":{"files":{"readme":"readme.txt","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}},"created_at":"2023-11-17T17:16:44.000Z","updated_at":"2024-01-20T09:39:20.000Z","dependencies_parsed_at":"2023-11-26T11:24:16.301Z","dependency_job_id":"d6369c00-1745-45e8-ab5b-956e11fc4b70","html_url":"https://github.com/ParmodKumar28/Postaway-II","commit_stats":null,"previous_names":["parmodkumar28/postaway-ii"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ParmodKumar28/Postaway-II","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ParmodKumar28%2FPostaway-II","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ParmodKumar28%2FPostaway-II/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ParmodKumar28%2FPostaway-II/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ParmodKumar28%2FPostaway-II/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ParmodKumar28","download_url":"https://codeload.github.com/ParmodKumar28/Postaway-II/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ParmodKumar28%2FPostaway-II/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275304917,"owners_count":25441168,"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-15T02:00:09.272Z","response_time":75,"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":["backend-api","expressjs","jwt-authentication","mongodb","mongoose","nodejs","socialmedia"],"created_at":"2025-03-04T22:35:57.771Z","updated_at":"2025-09-15T18:55:36.888Z","avatar_url":"https://github.com/ParmodKumar28.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"//Important Please add your database link in .env file and also your email and app password for sending emailusing nodemailer.\n\n# Social Media Backend REST-API\n\nThis project is designed to create a robust social media backend REST-API using Node.js, ExpressJS, and MongoDB. The API will provide various functionalities including user management, posts, comments, likes, friend requests, and enhanced security features like OTP-based password reset.\n\n## Features\n\n### RESTful Architecture\n- **Efficient Routing**: Develop a RESTful API for managing data and routing control using Node.js and ExpressJS.\n\n### User Authentication\n- **Authentication System**: Implement user authentication for signup, login, and logout functionalities.\n- **Secure Login**: Provide enhanced security with an option to log out from all devices.\n\n### Post Management\n- **CRUD Operations**: Implement Create, Read, Update, and Delete operations for posts.\n- **Owner Access**: Allow post updates and deletions only by the post owner.\n\n### Comment System\n- **Comment Functionality**: Enable users to add, update, and delete comments on posts.\n- **Authorization**: Manage comment updates and deletions by the post owner or the commenter.\n\n### Like Functionality\n- **Like System**: Create a system to like posts and display like counts.\n- **Populated Information**: Display user information (id, name, and email) for likes, comments, and posts.\n\n### Friendship Features\n- **Friendship System**: Implement friend-related functionalities including managing friend requests, accepting/rejecting, and fetching user friends.\n\n### User Profile Updates\n- **Profile Updates**: Allow users to update their profiles, including name, gender, or avatar uploads.\n\n### OTP-Based Password Reset (Additional Task)\n- **OTP Management**: Implement OTP-based password reset functionality for added security.\n\n## Acceptance Criteria\n\n### API Structure\n\n#### Authentication Routes\n- `/api/users/signup`: Register a new user account.\n- `/api/users/signin`: Log in as a user.\n- `/api/users/logout`: Log out the currently logged-in user.\n- `/api/users/logout-all-devices`: Log out the user from all devices.\n\n#### User Profile Routes\n- `/api/users/get-details/:userId`: Retrieve user information while ensuring sensitive data is not exposed.\n- `/api/users/get-all-details`: Retrieve information for all users, excluding sensitive credentials.\n- `/api/users/update-details/:userId`: Update user details while securing sensitive data.\n- `/api/users//avatar-upload`: Add avatar on user profile.\n\n#### Post Routes\n- `/api/posts/all`: Retrieve all posts from various users.\n- `/api/posts/:postId`: Retrieve a specific post by ID.\n- `/api/posts/user/:userId`: Retrieve all posts for a specific user.\n- `/api/posts/create`: Create a new post.\n- `/api/posts/delete/:postId`: Delete a specific post.\n- `/api/posts/update/:postId`: Update a specific post.\n\n#### Comment Routes\n- `/api/comments/:postId`: Get comments for a specific post.\n- `/api/comments/add/:postId`: Add a comment to a specific post.\n- `/api/comments/delete/:commentId`: Delete a specific comment.\n- `/api/comments/update/:commentId`: Update a specific comment.\n\n#### Like Routes\n- `/api/likes/:id`: Get likes for a specific post or comment.\n- `/api/likes/toggle/:id`: Toggle like on a post or comment.\n\n#### Friendship Routes\n- `/api/friends/get-friends/:userId`: Get a user's friends.\n- `/api/friends/get-pending-requests`: Get pending friend requests.\n- `/api/friends/toggle-friendship/:friendId`: Toggle friendship with another user.\n- `/api/friends/response-to-request/:friendId`: Accept or reject a friend request.\n\n#### OTP Routes\n- `/api/otp/send`: Send an OTP for password reset.\n- `/api/otp/verify`: Verify an OTP.\n- `/api/otp/reset-password`: Reset the user's password.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparmodkumar28%2Fpostaway-ii","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparmodkumar28%2Fpostaway-ii","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparmodkumar28%2Fpostaway-ii/lists"}