{"id":18773800,"url":"https://github.com/prthub/social_media_backend","last_synced_at":"2026-04-04T08:40:26.229Z","repository":{"id":217060897,"uuid":"741844352","full_name":"PrtHub/social_media_backend","owner":"PrtHub","description":"This backend provides the server-side functionality for a web application that blends features of YouTube and Twitter. It includes user management, video/tweet functionalities, subscriptions, playlists, and a dashboard.","archived":false,"fork":false,"pushed_at":"2024-01-27T09:14:56.000Z","size":104,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-19T15:16:55.732Z","etag":null,"topics":["backend","cookie","expressjs","javascript","jwt","mern-stack","mongodb","nodejs","twitter","youtube"],"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/PrtHub.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-01-11T08:23:17.000Z","updated_at":"2024-10-01T13:27:22.000Z","dependencies_parsed_at":"2024-11-07T19:48:00.607Z","dependency_job_id":null,"html_url":"https://github.com/PrtHub/social_media_backend","commit_stats":null,"previous_names":["prthub/backend-project","prthub/social_media_backend"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PrtHub%2Fsocial_media_backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PrtHub%2Fsocial_media_backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PrtHub%2Fsocial_media_backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PrtHub%2Fsocial_media_backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PrtHub","download_url":"https://codeload.github.com/PrtHub/social_media_backend/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239680985,"owners_count":19679509,"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":["backend","cookie","expressjs","javascript","jwt","mern-stack","mongodb","nodejs","twitter","youtube"],"created_at":"2024-11-07T19:35:50.417Z","updated_at":"2025-12-14T00:30:19.269Z","avatar_url":"https://github.com/PrtHub.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# YouTube + Twitter Backend\n\nThis project provides the backend functionality for a web application that combines features of YouTube and Twitter.\n\n## Table of Contents\n- [Project Structure](#project-structure)\n- [Features](#features)\n- [Technologies Used](#technologies-used)\n- [Getting Started](#getting-started)\n- [Usage](#usage)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Project Structure\n\nThe project follows a well-organized structure:\n\n- **controllers**: Houses controllers for various functionalities, promoting modular and maintainable code.\n  - `user.controller.js`\n  - `video.controller.js`\n  - `comment.controller.js`\n  - `like.controller.js`\n  - `subscription.controller.js`\n  - `playlist.controller.js`\n  - `dashboard.controller.js`\n  - `tweet.controller.js`\n\n- **middlewares**: Contains essential middleware functions.\n  - `auth.middleware.js`: Handles user authentication.\n  - `multer.middleware.js`: Manages file uploads using Multer.\n\n- **db**: Configurations related to the MongoDB database.\n\n- **models**: MongoDB models defining the data structure.\n  - `video.model.js`\n  - `user.model.js`\n  - `comment.model.js`\n  - `tweet.model.js`\n  - `subscription.model.js`\n  - `like.model.js`\n  - `playlist.model.js`\n\n- **routes**: Defines routes for all controllers, ensuring clean separation of concerns.\n\n- **utils**: Hosts utility functions for common tasks.\n\n```\n|-- controllers\n|   |-- user.controller.js\n|   |-- video.controller.js\n|   |-- comment.controller.js\n|   |-- like.controller.js\n|   |-- subscription.controller.js\n|   |-- playlist.controller.js\n|   |-- dashboard.controller.js\n|   |-- tweet.controller.js\n|-- middlewares\n|   |-- auth.middleware.js\n|   |-- multer.middleware.js\n|-- db\n|   |-- [Database Configuration Files]\n|-- models\n|   |-- video.model.js\n|   |-- user.model.js\n|   |-- comment.model.js\n|   |-- tweet.model.js\n|   |-- subscription.model.js\n|   |-- like.model.js\n|   |-- playlist.model.js\n|-- routes\n|   |-- [Route Files]\n|-- utils\n|   |-- [Utility Files]\n```\n\n\n## Features\n\n- User authentication and authorization\n- Video and tweet management (upload, view, like, comment, share)\n- Subscriptions to other users\n- Playlist creation and management\n- User dashboard\n- File uploads using Multer\n- Cloudinary integration for file storage\n- Secure authentication with JWT\n- Environment variable management with Dotenv\n- Cross-Origin Resource Sharing (CORS) support\n- Cookie parsing\n- Password encryption with Bcrypt\n  \n## Technologies Used\n\n- Database: MongoDB with Mongoose for seamless object modeling.\n- Server: Node.js powered by the Express framework for a fast and minimalistic web framework.\n- File Storage: Cloudinary for efficient storage and retrieval of files and images.\n- Authentication: JSON Web Tokens (JWT) for secure user authentication.\n- Environment Variables: Dotenv\n- Middleware: cors for enabling cross-origin resource sharing, cookie-parser for parsing cookies, and bcrypt for password hashing.\n\n## Getting Started\n\n1. Clone the repository:\n```\ngit clone https://github.com/PrtHub/backend-project.git\n```\n3. Install dependencies:\n```\nnpm instal\n```\n3. Create a `.env` file and set up the required environment variables (database connection string, Cloudinary credentials, etc.).\n   \n4. Start the server:\n```\nnpm run dev\n```\n\n## Usage\n\nDocument how to interact with the backend API. Include sample requests and responses, authentication procedures, file upload instructions, and other key features.\n\n## Contributing\n\nI welcome contributions! Please follow these guidelines:\n\n- Fork the repository and create a branch for your changes.\n- Make your changes and commit them with clear messages.\n- Push your changes to your fork and create a pull request.\n- I'll review your changes and merge them if they meet my guidelines.\n\n## License\n\nThis project is licensed under the [Pritam Ghosh](https://github.com/PrtHub)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprthub%2Fsocial_media_backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprthub%2Fsocial_media_backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprthub%2Fsocial_media_backend/lists"}