# ๐Ÿš€ SoundWave - Quick Launch Guide ## โšก One-Command Setup ```bash cd /home/iulian/projects/zi-tube/soundwave ./setup.sh ``` This automated script will: 1. โœ… Create `.env` file with default settings 2. โœ… Create volume directories 3. โœ… Build React frontend 4. โœ… Start database services (Elasticsearch + Redis) 5. โœ… Start SoundWave application 6. โœ… Run database migrations 7. โœ… Create admin user 8. โœ… Collect static files **Time:** ~2-3 minutes ## ๐Ÿ” Default Access - **URL:** http://localhost:123456 - **Username:** admin - **Password:** soundwave ## ๐Ÿ“‹ Manual Setup (If Needed) ### Step 1: Environment File ```bash cp .env.example .env ``` ### Step 2: Build Frontend ```bash cd frontend npm install npm run build cd .. ``` ### Step 3: Start Services ```bash docker compose up -d ``` ### Step 4: Run Migrations ```bash # Wait 30 seconds for Elasticsearch sleep 30 # Run migrations docker exec soundwave python manage.py makemigrations audio docker exec soundwave python manage.py migrate ``` ### Step 5: Create Admin User ```bash docker exec -it soundwave python manage.py createsuperuser ``` ## ๐Ÿ› ๏ธ Common Commands ### View Logs ```bash docker compose logs -f soundwave ``` ### Stop Services ```bash docker compose down ``` ### Restart Application ```bash docker compose restart soundwave ``` ### Access Container Shell ```bash docker exec -it soundwave bash ``` ### Check Service Status ```bash docker compose ps ``` ## ๐Ÿงช Testing Checklist After launch, verify: 1. โœ… Visit http://localhost:123456 2. โœ… Login with admin/soundwave 3. โœ… Test local file upload 4. โœ… Check PWA install prompt 5. โœ… Test offline mode 6. โœ… Verify media controls ## ๐Ÿ› Troubleshooting ### Port Already in Use ```bash # Change port in docker-compose.yml nano docker-compose.yml # Edit: "YOUR_PORT:8888" ``` ### Elasticsearch Won't Start ```bash sudo sysctl -w vm.max_map_count=262144 ``` ### Reset Everything ```bash docker compose down -v rm -rf audio cache es redis ./setup.sh ``` ## ๐Ÿ“Š What's Included - โœ… Multi-tenant audio streaming - โœ… Local file upload with metadata - โœ… PWA with offline support - โœ… Media Session API (native controls) - โœ… 11 optimized icons for all platforms - โœ… Service worker caching - โœ… Background sync - โœ… Lyrics support - โœ… Artwork management - โœ… 2FA authentication - โœ… Theme customization ## ๐ŸŽฏ Next Steps 1. Run `./setup.sh` 2. Wait 2-3 minutes 3. Open http://localhost:123456 4. Login and enjoy! **๐Ÿ“š Full documentation:** See `PRE_LAUNCH_CHECKLIST.md`