{"id":18628487,"url":"https://github.com/techmannih/social-media","last_synced_at":"2025-11-04T02:30:31.393Z","repository":{"id":228066193,"uuid":"773063542","full_name":"techmannih/social-media","owner":"techmannih","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-17T03:35:50.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-14T05:15:28.972Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/techmannih.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-03-16T16:38:16.000Z","updated_at":"2024-03-16T16:41:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"a0b165a7-6478-4fbe-a494-fdbd2f0a69d0","html_url":"https://github.com/techmannih/social-media","commit_stats":null,"previous_names":["techmannih/social-media"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techmannih%2Fsocial-media","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techmannih%2Fsocial-media/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techmannih%2Fsocial-media/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techmannih%2Fsocial-media/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/techmannih","download_url":"https://codeload.github.com/techmannih/social-media/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239425338,"owners_count":19636346,"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":[],"created_at":"2024-11-07T04:46:52.616Z","updated_at":"2025-11-04T02:30:31.338Z","avatar_url":"https://github.com/techmannih.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Social Networking API with MongoDB\n\nThis project implements a RESTful API for a basic social networking application using Node.js and MongoDB. It supports user profiles, posts, and the ability to follow other users.\n\n## Features\n\n- **User Profiles:** Create, update, view, and delete user profiles with details like username, bio, and profile picture URL. Use UUID for user IDs.\n- **Authentication:** Implement JWT-based authentication for signing up, logging in, and performing actions on user profiles.\n- **Posts:** Allow users to create, view, update, and delete their posts. Each post includes text content, a timestamp, and the ID of the user who created it.\n- **Following Mechanism:** Enable users to follow and unfollow other users. Provide endpoints to retrieve the list of users a user is following and who is following them.\n- **Efficient Data Retrieval:** Use MongoDB's aggregation framework to implement efficient queries for the social feed, displaying posts from users that a given user follows, sorted by most recent.\n- **Data Modeling:** Design MongoDB schemas for users, posts, and follows. Consider references or embedded documents for optimal performance.\n- **Security and Validation:** Implement input validation to prevent injection attacks and rate limiting to protect against brute force attacks.\n- **Testing:** Write integration tests to ensure API endpoints work as expected and handle errors gracefully.\n- **Documentation:** Provide comprehensive API documentation detailing endpoint descriptions, request/response formats, and example use cases.\n\n## Getting Started\n\n1. Clone this repository to your local machine.\n2. Install dependencies using `npm install`.\n3. Ensure MongoDB is running locally or provide a connection URI to a remote MongoDB instance.\n4. Set up environment variables as specified in `.env.example`.\n5. Run the application using `npm start`.\n6. Run integration tests using `npm test` to verify the functionality of the API endpoints.\n7. Refer to the API documentation for detailed usage instructions and examples.\n\n## API Documentation\n\nThe API documentation provides comprehensive information about all endpoints, including their descriptions, request/response formats, and example use cases.\n\n## Technologies Used\n\n- Node.js\n- Express.js\n- MongoDB\n- JWT for authentication\n\n## Contribution Guidelines\n\nContributions are welcome! Please follow these guidelines when contributing:\n\n- Fork the repository and create a new branch for your feature/bug fix.\n- Ensure your code follows the established coding style and conventions.\n- Write clear, concise commit messages and comments.\n- Test your changes thoroughly before submitting a pull request.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechmannih%2Fsocial-media","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechmannih%2Fsocial-media","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechmannih%2Fsocial-media/lists"}