Code Monkey home page Code Monkey logo

spotify-artist-search's Introduction

Spotify Artist Search

Description

This is a simple web app that allows you to search for an artist using the Spotify API and view their albums and tracks. The app also displays the artist and track's popularity. It also allows you to view your recently viewed when you perform a search and preview tracks.

Requirements

Installation

  1. Clone the repo by running:

    git clone [email protected]:glowingmanagement/unhurd-spotify-webapp.git
  2. Change into the directory by running:

    cd unhurd-spotify-webapp
  3. Install dependencies by running:

    npm run app:install
  4. Create a .env file in the server directory and add your Spotify client ID and secret following the .env.example for reference

  5. Build the app by running:

    npm run build
  6. Start the server by running:

    npm start
  7. Open your browser and go to:

    http://localhost:3000

Environment Variables

| CLIENT_ID | Client ID from the Spotify API |

| CLIENT_SECRET | Client secret from the Spotify API |

| PORT | Port to run the server on | Default: 8000 |

Scripts

| webapp:start | Start running the webapp |

| webapp:build | Build the react application |

| webapp:install | Install dependencies for the webapp |

| server:start | Start the server |

| server:build | Compile the server |

| server:install | Install dependencies for the server |

| server:dev | Run the server in development mode using Nodemon |

| app:install | Install all dependencies for the server and webapp |

| start | Concurrently run the server and webapp |

| build | Build and compile the server and webapp |

Endpoints

  • [GET] /v1/api/search/
  • [GET] /v1/api/search/:artistName
  • [GET] /v1/api/album/:albumId:previewId

Technologies

License

MIT License

Contact

Josh Holmes:

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.