{"id":26207472,"url":"https://github.com/0372hoanghoccode/realtime-music-app","last_synced_at":"2026-04-06T02:33:07.606Z","repository":{"id":281048213,"uuid":"934936021","full_name":"0372hoanghoccode/Realtime-Music-App","owner":"0372hoanghoccode","description":"A full-stack, real-time music streaming application built with React, TypeScript, Node.js, and Socket.io. Features include music playback, playlists, real-time chat, admin dashboard, and more.","archived":false,"fork":false,"pushed_at":"2025-08-03T02:17:10.000Z","size":19988,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-03T14:27:24.618Z","etag":null,"topics":["clerk","expressjs","mongoose","node","react","socket-io","typescript","zustand"],"latest_commit_sha":null,"homepage":"https://realtime-music-app-hntg.onrender.com/","language":"TypeScript","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/0372hoanghoccode.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-02-18T16:34:45.000Z","updated_at":"2025-08-03T02:17:13.000Z","dependencies_parsed_at":"2025-05-27T15:29:11.575Z","dependency_job_id":"926f836a-5493-4996-aeea-432225dda50b","html_url":"https://github.com/0372hoanghoccode/Realtime-Music-App","commit_stats":null,"previous_names":["0372hoanghoccode/realtime-music-app"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/0372hoanghoccode/Realtime-Music-App","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0372hoanghoccode%2FRealtime-Music-App","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0372hoanghoccode%2FRealtime-Music-App/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0372hoanghoccode%2FRealtime-Music-App/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0372hoanghoccode%2FRealtime-Music-App/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0372hoanghoccode","download_url":"https://codeload.github.com/0372hoanghoccode/Realtime-Music-App/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0372hoanghoccode%2FRealtime-Music-App/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31457695,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T21:22:52.476Z","status":"online","status_checked_at":"2026-04-06T02:00:07.287Z","response_time":112,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["clerk","expressjs","mongoose","node","react","socket-io","typescript","zustand"],"created_at":"2025-03-12T05:33:02.853Z","updated_at":"2026-04-06T02:33:07.600Z","avatar_url":"https://github.com/0372hoanghoccode.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🎵 Realtime Music App - Spotify Clone\n\nA full-stack, real-time music streaming application built with React, TypeScript, Node.js, and Socket.io. Features include music playback, playlists, real-time chat, admin dashboard, and more.\n\n![Realtime Music App](https://img.shields.io/badge/Status-Production%20Ready-brightgreen)\n![License](https://img.shields.io/badge/License-ISC-blue)\n![Version](https://img.shields.io/badge/Version-1.0.0-orange)\n\n## ✨ Features\n\n### 🎶 Music Features\n\n- **Music Streaming**: Play songs with advanced audio controls\n- **Playlists**: Create, edit, and manage personal playlists\n- **Albums**: Browse and play album collections\n- **Search \u0026 Discovery**: Find songs, artists, and albums\n- **Like System**: Like/unlike favorite songs\n- **Music History**: Track listening history\n- **Trending \u0026 Featured**: Discover popular and recommended music\n\n### 💬 Social Features\n\n- **Real-time Chat**: Live messaging between users\n- **User Activity**: See what other users are listening to\n- **Online Status**: Real-time user presence indicators\n\n### 👑 Admin Features\n\n- **Dashboard**: Comprehensive statistics and analytics\n- **Music Management**: Upload, edit, and delete songs/albums\n- **User Management**: Monitor user activities and stats\n- **File Upload**: Support for audio and image file uploads\n\n### 🔐 Authentication \u0026 Security\n\n- **Clerk Authentication**: Secure user authentication\n- **OAuth Integration**: Google and GitHub login support\n- **Role-based Access**: Admin and user role management\n- **Protected Routes**: Secure API endpoints\n\n## 🛠️ Tech Stack\n\n### Frontend\n\n- **React 19** - Modern UI framework\n- **TypeScript** - Type-safe development\n- **Vite** - Fast build tool and dev server\n- **Tailwind CSS** - Utility-first CSS framework\n- **Zustand** - State management\n- **React Router** - Client-side routing\n- **Radix UI** - Accessible UI components\n- **Clerk** - Authentication system\n- **Socket.io Client** - Real-time communication\n\n### Backend\n\n- **Node.js** - Runtime environment\n- **Express.js** - Web framework\n- **MongoDB** - NoSQL database\n- **Mongoose** - MongoDB ODM\n- **Socket.io** - Real-time communication\n- **Cloudinary** - File storage and management\n- **Clerk** - Authentication middleware\n\n### Development Tools\n\n- **ESLint** - Code linting\n- **Prettier** - Code formatting\n- **PNPM** - Package manager\n- **Nodemon** - Development server\n\n## 🚀 Quick Start\n\n### Prerequisites\n\n- Node.js (v18 or higher)\n- PNPM package manager\n- MongoDB database\n- Cloudinary account\n- Clerk account\n\n### Installation\n\n1. **Clone the repository**\n\n```bash\ngit clone \u003crepository-url\u003e\ncd Realtime-Music-App\n```\n\n2. **Install dependencies**\n\n```bash\npnpm install\n```\n\n3. **Environment Setup**\n\nCreate `.env` files in both `backend` and `frontend` directories:\n\n**Backend (.env)**\n\n```env\nPORT=5000\nMONGODB_URI=your_mongodb_connection_string\nCLOUDINARY_CLOUD_NAME=your_cloudinary_cloud_name\nCLOUDINARY_API_KEY=your_cloudinary_api_key\nCLOUDINARY_API_SECRET=your_cloudinary_api_secret\nCLERK_PUBLISHABLE_KEY=your_clerk_publishable_key\nCLERK_SECRET_KEY=your_clerk_secret_key\nNODE_ENV=development\n```\n\n**Frontend (.env)**\n\n```env\nVITE_CLERK_PUBLISHABLE_KEY=your_clerk_publishable_key\nVITE_API_URL=http://localhost:5000\n```\n\n4. **Seed Database (Optional)**\n\n```bash\ncd backend\npnpm run seed:songs\npnpm run seed:albums\n```\n\n5. **Start Development Servers**\n\nBackend:\n\n```bash\ncd backend\npnpm dev\n```\n\nFrontend:\n\n```bash\ncd frontend\npnpm dev\n```\n\nThe app will be available at `http://localhost:3000`\n\n## 🔧 Available Scripts\n\n### Root Level\n\n- `pnpm build` - Build the entire application\n- `pnpm start` - Start production server\n\n### Backend\n\n- `pnpm dev` - Start development server with hot reload\n- `pnpm start` - Start production server\n- `pnpm seed:songs` - Seed database with sample songs\n- `pnpm seed:albums` - Seed database with sample albums\n\n### Frontend\n\n- `pnpm dev` - Start development server\n- `pnpm build` - Build for production\n- `pnpm preview` - Preview production build\n- `pnpm lint` - Run ESLint\n\n## 🚀 Deployment\n\n### Production Build\n\n```bash\npnpm build\n```\n\n### Deploy to Platform\n\nThe app is configured for deployment on platforms like Render, Vercel, or Railway. Make sure to:\n\n1. Set environment variables\n2. Configure build scripts\n3. Set up MongoDB database\n4. Configure Cloudinary\n5. Set up Clerk authentication\n\n## 📸 Screenshots\n\n### Home Page\n\n![Home Page](docs/screenshots/home.png)\n\n### Music Player\n\n![Music Player](docs/screenshots/player.png)\n\n### Admin Dashboard\n\n![Admin Dashboard](docs/screenshots/admin.png)\n\n### Real-time Chat\n\n![Chat](docs/screenshots/chat.png)\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0372hoanghoccode%2Frealtime-music-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0372hoanghoccode%2Frealtime-music-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0372hoanghoccode%2Frealtime-music-app/lists"}