Spotify Controller does this using the Spotify API. The app is created using ElectronJS and React.
npm install
Create config.js
in /src/utils
with the following format :
const cfg = {
clientid: '<your-spotify-api-client-id>',
redirectUri: '<your-redirect-webpage-url>'
}
export default cfg
Create a webpage that opens the Spotify Controller app upon redirection from the Spotify OAuth login screen using custom URL Protocol.
🔗 Example
npm run dev
npm start
npm run build
Change all src or hrefs from /
to ./
notation in /dist/index.html
.
Example - /assets/icon.ico
to ./assets/icon.ico
.
Replace win.loadURL('http://localhost:5173/')
in the createWindow
function in main.js
with win.loadFile('./dist/index.html')
.
Building the app requires @electron/packager
npx @electron/packager . --overwrite --icon=./public/icon.ico