{"id":28348948,"url":"https://github.com/ahmed1cb/youtube-clone-api","last_synced_at":"2026-04-18T00:08:04.949Z","repository":{"id":295843870,"uuid":"990445936","full_name":"AHMED1CB/youtube-clone-api","owner":"AHMED1CB","description":"A Restful Api of Youtube Clone","archived":false,"fork":false,"pushed_at":"2025-07-21T08:09:06.000Z","size":2494,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-14T18:33:47.744Z","etag":null,"topics":["api-rest","database","laravel","youtube-api"],"latest_commit_sha":null,"homepage":"https://youtube-clone-api-dnru.onrender.com/api/","language":"PHP","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/AHMED1CB.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-05-26T06:08:05.000Z","updated_at":"2025-07-21T08:09:10.000Z","dependencies_parsed_at":"2025-05-27T17:19:46.509Z","dependency_job_id":"167c3a02-3af8-497b-ad2c-7a5b5fbe68f6","html_url":"https://github.com/AHMED1CB/youtube-clone-api","commit_stats":null,"previous_names":["ahmed1cb/youtube-clone-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AHMED1CB/youtube-clone-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AHMED1CB%2Fyoutube-clone-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AHMED1CB%2Fyoutube-clone-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AHMED1CB%2Fyoutube-clone-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AHMED1CB%2Fyoutube-clone-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AHMED1CB","download_url":"https://codeload.github.com/AHMED1CB/youtube-clone-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AHMED1CB%2Fyoutube-clone-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31950895,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T17:29:20.459Z","status":"ssl_error","status_checked_at":"2026-04-17T17:28:47.801Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["api-rest","database","laravel","youtube-api"],"created_at":"2025-05-27T19:11:17.722Z","updated_at":"2026-04-18T00:08:04.912Z","avatar_url":"https://github.com/AHMED1CB.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🎬 YouTube Clone API\n\nA RESTful API backend for a YouTube-like video-sharing platform, built with Laravel and MySQL.\n\n---\n\n## 🚀 Features\n\n- User authentication and authorization\n- Video upload, streaming, and management\n- Channel creation and subscription\n- Commenting and liking system\n- Playlist management\n- Search functionality\n- API documentation\n\n---\n\n## 🛠️ Technologies Used\n\n- **Framework**: Laravel\n- **Language**: PHP\n- **Database**: MySQL\n- **Web Server**: Nginx\n- **Containerization**: Docker\n- **Package Manager**: Composer\n\n---\n\n## 📁 Project Structure\n\n```\n├── app/                 # Application core\n├── bootstrap/           # Application bootstrap files\n├── config/              # Configuration files\n├── database/            # Migrations and seeders\n├── public/              # Publicly accessible files\n├── resources/           # Views and assets\n├── routes/              # API and web routes\n├── storage/             # Logs and file storage\n├── tests/               # Test cases\n├── Dockerfile           # Docker configuration\n├── .env.example         # Environment variables example\n├── composer.json        # PHP dependencies\n├── package.json         # JavaScript dependencies\n└── README.md            # Project documentation\n```\n\n---\n\n## 📦 Installation\n\n1. **Clone the repository:**\n   ```bash\n   git clone https://github.com/AHMED1CB/youtube-clone-api.git\n   cd youtube-clone-api\n   ```\n\n2. **Copy the example environment file and configure it:**\n   ```bash\n   cp .env.example .env\n   ```\n\n3. **Install PHP dependencies:**\n   ```bash\n   composer install\n   ```\n\n4. **Generate application key:**\n   ```bash\n   php artisan key:generate\n   ```\n\n5. **Run database migrations:**\n   ```bash\n   php artisan migrate\n   ```\n\n6. **Start the development server:**\n   ```bash\n   php artisan serve\n   ```\n\n---\n\n## 🐳 Docker Setup\n\n1. **Build and run the Docker containers:**\n   ```bash\n   docker-compose up -d --build\n   ```\n\n2. **Access the application:**\n   The API will be available at `http://localhost:8000`.\n\n---\n\n## 🔌 API Endpoints\n\n### 🔐 Authentication:\n- `POST /api/auth/register` - Register a new user\n- `POST /api/auth/login` - Authenticate a user\n- `POST /api/auth/logout` - Logout the authenticated user\n- `POST /api/auth` - Get Profile Details\n\n### 📹 Videos And Shorts:\n- `POST /api/videos` - Retrieve all videos\n- `POST /api/videos/upload` - Upload a new video\n- `POST /api/videos/{slug}` - Retrieve a specific video\n- `POST /api/videos/{id}/delete` - Delete a video\n- `POST /api/videos/{id}/comment` - Comment on Video\n- `POST /api/videos/{id}/savedata` - Add View To Video And Save To User History\n- `POST /api/videos/{id}/react` - React on Video\n\n### 📺 Channels:\n- `POST /api/channels/{channel}/subscribe` - Subscribe Channel\n- `POST /api/channels/{username}` - get Channel Data\n\n### 💬 Comments:\n- `POST /api/comments/` - get All user Comments\n- `POST /api/comments/{comment}/update` - Update Comment\n- `POST /api/comments/{comment}/delete` - Delete a comment\n---\n\n### 💬 History:\n- `POST /api/` - get All History Videos Of User\n- `POST /api/history/changestate` - Pause or Start Saving History Videos\n- `POST /api/history/clear` - Clear History of user\n---\n\n## 🗄️ Database Configuration\n\nEnsure your `.env` file is configured with the correct database settings:\n\n```\nDB_CONNECTION=mysql\nDB_HOST=127.0.0.1\nDB_PORT=3306\nDB_DATABASE=your_database_name\nDB_USERNAME=your_username\nDB_PASSWORD=your_password\n```\n\n---\n\n## 🧪 Running Tests\n\nExecute the test suite using PHPUnit:\n\n```bash\nphp artisan test\n```\n\n---\n\n## 📄 License\n\nThis project is licensed under the **MIT License**. See the [LICENSE](LICENSE) file for details.\n\n---\n\n## 🤝 Contributing\n\nContributions are welcome! Please fork the repository and submit a pull request.\n\n---\n\n## 📫 Contact\n\nFor support or inquiries, open an issue on [GitHub](https://github.com/AHMED1CB/youtube-clone-api/issues).\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmed1cb%2Fyoutube-clone-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahmed1cb%2Fyoutube-clone-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmed1cb%2Fyoutube-clone-api/lists"}