Code Monkey home page Code Monkey logo

spotify_library_manager's Introduction

spotify_library_manager

A simple app that removes duplicate songs from a Spotify user's saved tracks. Built with node.js and uses express framework and pug view engine. The motivation for this project was largely educational, improving my knowledge and competency surrounding:

  1. APIs
  2. HTTP requests
  3. OAuth2.0
  4. Javascript
  5. Web development in general

The goal was to focus more on back-end functionality, so the user-interface is very bare-bones. User must register an app on Spotify for Developers website to obtain unique credentials and manually populate .env file before accessing or modifying their Spotify tracks through this app.

Requirements

This app requires Node.js and npm to be installed locally. The following packages are also required:

  • express
  • spotify-web-api-node
  • simple-oauth2
  • pug

All required packages can be installed with the terminal command

npm install

Alternatively, packages can be installed individually by running

npm install <package name>

Setup

  1. Login to Spotify for Developers with Spotify account and navigate to Dashboard
  2. Click "Create App" and complete the required fields
  3. Navigate to Settings in the app you just registered
  4. Copy and paste Client ID and Client Secret into .env_sample file and rename file to ".env" (remove "_sample")

Usage

  1. Launch app with the terminal commmand node liked_tracks_manager.js
  2. Navigate to localhost:3000 in browser
  3. Follow links to retrieve tracks, and find and delete duplicates. NOTE: track retrieval can take as long as 30 sec

spotify_library_manager's People

Contributors

ivarela28 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

codewithsadaf

spotify_library_manager's Issues

tracks and duplicates are still global arrays

These arrays are initialized globally as a workaround to the problem of getting "undefined" outputs when trying the pass the result of retrieveTracks() or checkDuplicates() into anything

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.