Skip to content

This app scans your local mp3 files, searches for them on Spotify based on metadata information and generates a playlist on your account

Notifications You must be signed in to change notification settings

jarraga/local-to-spotify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

localToSpotify

This app scans your local mp3 files, searches for them on Spotify based on metadata information and generates a playlist on your account

Live app

https://localtospotify.web.app

Demonstration video

https://www.youtube.com/watch?v=zv0ewC9OgdE

Github repository

https://github.com/jarraga/local-to-spotify

Dev.to post

https://dev.to/jarraga/local-mp3-files-to-spotify-playlist-own-app-473f

Run instructions

  • Change name of wifi card (or developer card used) to 'wifi', or put name of actual card in globals.js line 11
  • Check global variables in globals.js

Environment variables server side

  • MODE ('dev' or 'prod')
  • SPOTIFY_CLIENT_ID
  • SPOTIFY_CLIENT_SECRET

I use telegram bot to error notifications

  • TG_ADMIN_CHAT_ID
  • TG_BOT_TOKEN

Environment variables client side

Check .env.production and .env.development files in vue folder

  • VUE_APP_SERVER_URL
  • VUE_APP_CB_URL

Run

server

  • "/" npm i
  • "/" node main.js

client

  • "/vue" npm i
  • "/vue" npm run serve

Deploy

server

  • upload code to your own server or heroku app
  • set MODE environment variable to 'prod'
  • "/" node main.js

client

pm2 commands for your own server

  • backend "/"

SPOTIFY_CLIENT_ID=xxx SPOTIFY_CLIENT_SECRET=xxx TG_ADMIN_CHAT_ID=xxx TG_BOT_TOKEN=xxx pm2 --name spoty-backend start main.js

  • frontend "/vue"

pm2 --name spoty-frontend serve --spa dist 5000

Comments and feedback:

Telegram

Whatsapp

About

This app scans your local mp3 files, searches for them on Spotify based on metadata information and generates a playlist on your account

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published