Give this little app your favorite song and you'll get information about it as well as a list of similar songs.
git clone
- Replace your API Keys in the
server.js
file located insrc
(see https://github.com/ngarnier/songalike#services-used) npm install && npm run postinstall && npm start
- The app is running on
localhost:3030
or theport
set by your environment.
All credentials are stored as environment variables, don't forget to store yours before running the app.
- Spotify: Used to provide the song analysis and features.
SPOTIFY_ID
: your Spotify API Client IDSPOTIFY_SECRET
: your Spotify API Client Secret Key
- Last.fm: Used to provide the list of similar songs.
LASTFM_ID
: your Last.fm API ID
- Genius: Used to provide lyrics.
GENIUS_TOKEN
: your Genius API token
src
folderserver.js
: The server of the app, built in Node.js and ES6. It is built with Babel with thenpm run postinstall
command (the compiled version is theserver.js
file located at the root of the app)styles.scss
: The styles of the app, written inSCSS
. It is manually built with theSass
CLI (theCSS
output is located in thepublic
folder)
views
folder:pug
templates rendered byserver.js
index.pug
: the homepage of the appfeatures.pug
: the song analysis page of the app
public
folder: static style and script files