mirror of
https://github.com/wahyd4/you-music.git
synced 2026-08-08 20:59:47 +10:00
2.3 KiB
2.3 KiB
Quick Start Guide
🚀 Fastest Way to Get Started
Option 1: Local Development (Fastest for Development)
For macOS/Linux:
cd you-music
# One-time setup
./dev-setup.sh
# Start development
./dev.sh
# Visit http://localhost:3000
Stop servers when done:
./dev-stop.sh
See LOCAL_DEV_GUIDE.md for more details.
Option 2: Docker (Easiest for Production)
# Clone the repository
git clone <your-repo-url>
cd you-music
# Start with Docker
docker-compose up -d
# Access the app
open http://localhost:8000
That's it! The app is now running.
Option 3: Manual Setup
Backend:
cd backend
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install -r requirements.txt
uvicorn main:app --reload
Frontend (in another terminal):
cd frontend
npm install
npm run dev
📱 First Steps
-
Search for Music
- Click "Search" tab
- Enter artist or song name
- Click download button to save
-
Play Music
- Go to "Library" tab
- Click play button on any song
- Use player controls at bottom
-
Create Playlist
- Go to "Playlists" tab
- Click "New Playlist"
- Add songs from your library
🎬 Example Usage
Download from YouTube
1. Go to Search tab
2. Search for "Your favorite song"
3. Click download icon
4. Wait for download to complete
5. Find it in Library tab
Share a Song
Copy this URL format:
http://localhost:8000/?music=1
Replace '1' with the music ID
Share with friends!
⚙️ Configuration
Copy example env files:
cp backend/.env.example backend/.env
cp frontend/.env.example frontend/.env
Edit as needed for your setup.
🐛 Common Issues
"FFmpeg not found"
# Ubuntu/Debian
sudo apt-get install ffmpeg
# macOS
brew install ffmpeg
# Windows
# Download from https://ffmpeg.org/download.html
Port 8000 already in use
# Use different port
docker-compose down
# Edit docker-compose.yml ports section
docker-compose up -d
Database issues
# Reset database
rm data/youmusic.db
docker-compose restart
📞 Need Help?
- Check the main README.md
- Visit API docs at http://localhost:8000/docs
- Open an issue on GitHub