Moodplay plays music based on your mood.
A webapp using Google Vision API to analyze an uploaded image of your face. It detects your emotions and plays a Spotify song that fits your mood.
Here is a working live demo : https://moodplay.nl/
-
Get a free API Key at https://developer.spotify.com/ and create an API key (JSON) at https://cloud.google.com/vision/
-
Create a free MongoDB database at https://mlab.com
-
Clone the repo
git clone https://github.com/jce200/Moodplay.git
- Install NPM packages
npm install
- Enter your API Key and Secret in
server.js
const appKey = "ENTER YOUR CLIENT ID";
const appSecret = "ENTER YOUR CLIENT SECRET";
- Enter your Google Vision API Key filename in
server.js
keyFilename: "ENTER GOOGLE VISION API KEY FILENAME (JSON)"
- Enter your MongoDB URI
server.js
const dbRoute = "ENTER YOUR MONGODB URI";