// deployment environment
NODE_ENV=development
// this should point to the volumio RPi (most likely localhost)
VOLUMIO_HOST=192.168.178.79
// the port the API is reachable from
PORT=3002
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash
nvm install 8.11
npm install
Start:
npm start
docker build . -t self/jukebox-server
docker run -p <PORT>:<PORT> -v "./src:/usr/src/app/src" self/jukebox-server
GET http://localhost:<PORT>/api/vote
POST http://localhost:<PORT>/api/vote/cast {"song":<song_index>}
song_index = Index of the song from View Votes