Use it to help make your evening plans or to discover new local musicians.
- Submitted by: Phillip Schanely
- Tools used: Spotify Web API
- Source code repository link: https://github.com/pschanely/music-tonight
- Source code license link: http://opensource.org/licenses/BSD-2-Clause
Music Tonight uses the SeatGeek API to find concert listings, and matches the artists with the Spotify Web API to create a playlist on behalf of the user. It consists of an HTML5 client, and a node.js server. The server makes SeatGeek requests for concerts and Spotify requests to find most popular tracks for each of the artists. To avoid hammering Spotify’s API, it also uses a MySQL database to cache these requests. The tracks are then sent back to the client, and the client handles the oauth process and creates the Spotify playlist for the user, again with the Spotify Web API.
The mobile client runs nearly the same code on top of cordova; it leverages some cordova plugins for more accurate geolocation and to detect whether the Spotify app is installed and send the user there directly.