Prefer Docker? See docker.md for the recommended container-based setup.
- Node.js v22 or greater (nodejs.org)
- npm
- git
git clone https://github.com/aroundmyroom/mStream.git
cd mStream
npm install --only=prod
node cli-boot-wrapper.jsOpen http://localhost:3000 — on a fresh install with no users the admin panel is accessible without login.
Create /etc/systemd/system/music.service:
[Unit]
Description=mStream Velvet
After=network.target
[Service]
Type=simple
User=YOUR_USER
WorkingDirectory=/path/to/mStream
ExecStart=/usr/bin/node cli-boot-wrapper.js
Restart=on-failure
[Install]
WantedBy=multi-user.targetsystemctl daemon-reload
systemctl enable music.service
systemctl start music.servicenpm install -g pm2
pm2 start cli-boot-wrapper.js --name mStream
pm2 save
pm2 startupgit pull
npm install --only=prod
systemctl restart music.service # or: pm2 restart all