/receiptify

Primary LanguageJavaScript

Receiptify

Web application inspired by https://www.instagram.com/albumreceipts/. Generates receipts that list out a user's top tracks in the past month, 6 months, and all time.

The application can be viewed at https://receiptify.herokuapp.com/.

NOTE: This code is admittedly not super clean as I was in quite a time crunch when I originally wrote it and never got the chance to really go back and fix everything, so sorry in advance! Despite this, I am making it public as a few people have asked me about it :) When I have time, I hope to refactor & clean this up though!

Running the App Locally

This app runs on Node.js. On its website you can find instructions on how to install it. You can also follow this gist for a quick and easy way to install Node.js and npm.

Once installed, clone the repository and install its dependencies running:

$ npm install

Using your own credentials

You will need to register your app and get your own credentials from the Spotify for Developers Dashboard.

To do so, go to your Spotify for Developers Dashboard and create your application. In my own development process, I registered these Redirect URIs:

Once you have created your app, load the client_id, redirect_uri and client_secret into a config.js file.

In order to run the app, open the folder, and run its app.js file:

$ cd authorization_code
$ node app.js

Then, open http://localhost:3000 in a browser.