{"id":20010903,"url":"https://github.com/nitesh-18/viewmate","last_synced_at":"2026-04-10T02:57:58.799Z","repository":{"id":251657330,"uuid":"836353655","full_name":"Nitesh-18/ViewMate","owner":"Nitesh-18","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-05T21:02:43.000Z","size":1742,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-12T14:47:25.685Z","etag":null,"topics":["backend","expressjs","mongodb","node"],"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/Nitesh-18.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-07-31T17:04:50.000Z","updated_at":"2024-09-07T09:36:51.000Z","dependencies_parsed_at":"2024-08-12T18:29:49.956Z","dependency_job_id":null,"html_url":"https://github.com/Nitesh-18/ViewMate","commit_stats":null,"previous_names":["nitesh-18/youtube-backend-clone","nitesh-18/viewmate"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nitesh-18%2FViewMate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nitesh-18%2FViewMate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nitesh-18%2FViewMate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nitesh-18%2FViewMate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Nitesh-18","download_url":"https://codeload.github.com/Nitesh-18/ViewMate/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241447523,"owners_count":19964314,"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","expressjs","mongodb","node"],"created_at":"2024-11-13T07:23:04.722Z","updated_at":"2026-04-10T02:57:58.733Z","avatar_url":"https://github.com/Nitesh-18.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# ViewMate\n\n## Overview\n\nThis project is a backend clone of YouTube, designed to mimic the core functionalities of the popular video-sharing platform. It is built using Node.js, Express.js, and MongoDB. The main features include user authentication, video streaming, commenting on videos, subscription model, and watch history.\n\n## Features\n\n- User Authentication (Sign Up, Log In, Log Out)\n- Video Streaming\n- Commenting on Videos\n- Like and Dislike Videos\n- User Profile Management\n- Subscription Model\n- Watch History\n\n## Technologies Used\n\n- **Node.js**: JavaScript runtime for building the server-side application.\n- **Express.js**: Web framework for Node.js.\n- **MongoDB**: NoSQL database for storing user and video data.\n- **Mongoose**: ODM for MongoDB and Node.js.\n- **JWT**: JSON Web Tokens for authentication.\n\n## Project Structure\n\n```\nYOUTUBE BACKEND CLONE/\n├── node_modules/\n├── public/\n│ └── temp/\n│ └── .gitkeep\n├── src/\n│ ├── controllers/\n│ │ └── user-controller.js\n│ ├── db/\n│ │ └── db.js\n│ ├── middlewares/\n│ │ ├── auth.js\n│ │ └── multer.js\n│ ├── models/\n│ │ ├── subscription-model.js\n│ │ ├── user-model.js\n│ │ └── video-model.js\n│ ├── routes/\n│ │ └── user-routes.js\n│ ├── utils/\n│ │ ├── ApiError.js\n│ │ ├── ApiResponse.js\n│ │ ├── asyncHandler.js\n│ │ └── cloudinary.js\n├── app.js\n├── constants.js\n├── index.js\n├── .env\n├── .gitignore\n├── .prettierignore\n├── .prettierrc\n├── package-lock.json\n├── package.json\n└── README.md\n```\n\n## Getting Started\n\n### Prerequisites\n\n- Node.js installed\n- MongoDB installed and running\n\n### Installation\n\n1. Clone the repository:\n\n```bash\ngit clone https://github.com/Nitesh-18/Youtube-Backend-Clone.git\ncd Youtube-Backend-Clone\n```\n\n2. Install dependencies:\n\n```bash\nnpm install\n```\n\n3. Set up environment variables:\n\nCreate a `.env` file in the root directory and add the following:\n\n```\nPORT=5000\nMONGO_URI=your_mongodb_connection_string\nJWT_SECRET=your_jwt_secret\n```\n\n4. Start the server:\n\n```bash\nnpm start\n```\n\nThe server should now be running on `http://localhost:5000`.\n\n\u003c!-- ## API Endpoints\n\n### Auth\n\n- `POST /api/auth/signup`: Register a new user\n- `POST /api/auth/login`: Log in a user\n\n### Videos\n\n- `GET /api/videos`: Get all videos\n- `GET /api/videos/:id`: Get a video by ID\n\n### Comments\n\n- `POST /api/comments`: Add a comment to a video\n- `GET /api/comments/:videoId`: Get all comments for a video\n- `DELETE /api/comments/:id`: Delete a comment by ID\n\n### Subscriptions\n\n- `POST /api/subscriptions`: Subscribe to a channel\n- `GET /api/subscriptions`: Get all subscriptions for a user\n\n### Watch History\n\n- `POST /api/watchHistory`: Add a video to watch history\n- `GET /api/watchHistory`: Get watch history for a user --\u003e\n\n\n## Contributing\n\n1. Fork the repository\n2. Create a new branch (`git checkout -b feature/your-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin feature/your-feature`)\n5. Create a new Pull Request\n\n## Contact\n\nFor any questions or feedback, please contact me via [LinkedIn](https://www.linkedin.com/in/nitesh-r-a15518243/).\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnitesh-18%2Fviewmate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnitesh-18%2Fviewmate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnitesh-18%2Fviewmate/lists"}