{"id":15110096,"url":"https://github.com/ateendra24/youtube-backend","last_synced_at":"2025-04-05T16:48:08.404Z","repository":{"id":256784275,"uuid":"852216271","full_name":"ateendra24/Youtube-Backend","owner":"ateendra24","description":"A robust backend for a YouTube-like website built with Node.js, Express, MongoDB, JWT, and more. Includes authentication, video upload, playlist management, tweet, like and comment system.","archived":false,"fork":false,"pushed_at":"2024-09-12T13:49:35.000Z","size":46,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T16:48:03.555Z","etag":null,"topics":["expressjs","javascript","jwt","jwt-authentication","mongodb","mongoose","nodejs"],"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/ateendra24.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-09-04T12:33:59.000Z","updated_at":"2024-09-12T13:50:34.000Z","dependencies_parsed_at":"2024-09-13T03:24:49.276Z","dependency_job_id":null,"html_url":"https://github.com/ateendra24/Youtube-Backend","commit_stats":null,"previous_names":["ateendra24/youtube-backend"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ateendra24%2FYoutube-Backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ateendra24%2FYoutube-Backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ateendra24%2FYoutube-Backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ateendra24%2FYoutube-Backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ateendra24","download_url":"https://codeload.github.com/ateendra24/Youtube-Backend/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247369937,"owners_count":20927927,"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":["expressjs","javascript","jwt","jwt-authentication","mongodb","mongoose","nodejs"],"created_at":"2024-09-25T23:40:55.935Z","updated_at":"2025-04-05T16:48:08.384Z","avatar_url":"https://github.com/ateendra24.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Youtube Backend\n\nA backend for a YouTube-like website. This project is built using Node.js, Express, MongoDB, and Mongoose, featuring user authentication, video uploads, playlist management, and more.\n\n## Features\n\n- User authentication (sign up, login, token-based authentication)\n- Video upload and storage (using Cloudinary)\n- Playlist management\n- Commenting system\n- Secure password handling (using bcrypt)\n- Token-based authentication (JWT)\n- Cross-origin resource sharing (CORS)\n- Environment variable configuration (dotenv)\n\n## Tech Stack\n\n- **Node.js**: JavaScript runtime\n- **Express.js**: Web framework\n- **MongoDB \u0026 Mongoose**: NoSQL database and ODM for database modeling\n- **JWT**: Secure user authentication\n- **Cloudinary**: Cloud storage for video uploads\n- **Multer**: Middleware for handling file uploads\n- **bcrypt**: Password hashing\n- **dotenv**: Environment variable management\n\n## Installation\n\nTo run this project locally, follow these steps:\n\n1. Clone the repository:\n\n    ```bash\n    git clone https://github.com/ateendra24/Youtube-Backend/.git\n    ```\n\n2. Navigate to the project directory:\n\n    ```bash\n    cd Youtube-Backend\n    ```\n\n3. Install dependencies:\n\n    ```bash\n    npm install\n    ```\n\n4. Set up your environment variables. Create a `.env` file in the root directory and add the following:\n\n    ```bash\n    PORT=8000\n    MONGODB_URL=\n    CORS_ORIGIN=*\n    ACCESS_TOKEN_SECRET=\n    ACCESS_TOKEN_EXPIRY=1d\n    REFRESH_TOKEN_SECRET=\n    REFRESH_TOKEN_EXPIRY=10d\n\n    CLOUDINARY_CLOUD_NAME=\n    CLOUDINARY_API_KEY=\n    CLOUDINARY_API_SECRET=\n    ```\n\n5. Start the development server:\n\n    ```bash\n    npm run dev\n    ```\n\n## API Endpoints\n\nHere are some of the key endpoints provided by this backend:\n\n- **User Authentication**\n  - POST `/users/register` – User registration\n  - POST `/users/login` – User login\n\n- **Videos**\n  - POST `/videos/` – Upload a video\n  - GET `/videos/:id` – Get video details\n  - DELETE `/videos/:id` – Delete a video\n\n- **Playlists**\n  - POST `/playlist/` – Create a new playlist\n  - GET `/playlists/:id` – Get playlist details\n\n- **Comments**\n  - POST `/comments/:videoId/` – Add a comment to a video\n  - GET `/comments/:videoId/` – Get comments for a video\n\n## License\n\nThis project is licensed under the ISC License.\n\n## Author\n\nCreated by Ateendra Pratap Solanki\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fateendra24%2Fyoutube-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fateendra24%2Fyoutube-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fateendra24%2Fyoutube-backend/lists"}