Git Product home page Git Product logo

moody-music's Introduction

Welcome to Moody Music

This readme file provides you with any instructions necessary to run this application and makes it easier to understand.

Moody Music

As the name sounds, this application plays music according to your mood. How would it know your mood though? Simply put, it retrieves status updates from your Facebook profile and tweets from your Twitter page, that data is then analyzed through the Moody Music sentimental analysis algorithm and music based on your mood will start playing.

  • This application was developed on a cloud environment, specifically tested on IBM Bluemix and utilizes cloud services such as auto-scaling and online storage.
  • Currently the application utilizes a Youtube API for obtaining music rather than a full database of files, avoiding unnecessary server storage costs.
  • Lastly, this application was developed with an exotic cuisine of languages such as HTML5, CSS, Javascript, AJAX, and JQuery; whereas the backend runs with PHP and JSON.

Running the application

You can test the application live from: [Moody Music Page] (http://moodymusic.mybluemix.net) This application is currently not live.

This application is very simple to use, once published, all you really need to do is to login (and accept permissions) to facebook and/or twitter and it will automatically start retrieving your status/tweet updates and you'll enjoy music.

Unfortunately, this is not the case right now since the application is not published. Anyone who'd like to use this application, would've to be pre-authorized within the app's facebook/twitter page. Therefore, you've 3 options from here:

  1. Contact us with a link to your facebook page, and we'll approve you on the app's page as a tester, which will send a notification for you to accept. (Recommended)
  2. Now you're able to test the app with facebook, but not twitter (there's no login functionality implemented for twitter yet).
  3. Here's the longer option. Basically any twitter/facebook status update goes through the Moody Dictionary algorithm, therefore, you can edit the script (you can add it on the first line of the script) within the index page body, and simply add a hardcoded custom call to that algorithm with any quote you wanna try,
  4. Here's an example: moodyDictionary("This is a test post, I'm feeling good today").

Seems simple so far right? Here's the problem, to get to this step, you'd need to download this code and run it locally with a server of your own, like Apache server. If you've that setup, then you're good to go. 3. This is the longest choice, assuming you can do step 2, then you may proceed further if you like. Basically, now you can go further to create your own facebook application on the Developer Console, ensure you type the correct Application/Callback URL (i.e. localhost). Once successful, just copy the ID from your application onto the line that saysappId within the fbAsyncInit() function, which you can find within the index page. VOILA !!! Now you've successfully enabled your own facebook.

  1. If you'd like to also enable twitter for your own timeline, you gotta head to their Developer Console as well and create your own app. Once successful, retrieve the api key and secret, head to twitter.php and paste each one within its respective line (i.e. where it says $api_key = urlencode('paste your api key here') and $api_secret = urlencode('paste your api secret here')). Finally, to change to your own twitter username, $data_username = 'Username', add your username within the quotes on that line. VOILA !!! Now you've successfully added your own twitter timeline to the app.

License

This application is copyrighted, please view the [License] (https://github.com/ProVII/Moody-Music/blob/master/License.txt) file within the master branch.

moody-music's People

Watchers

Fuad Tareq avatar

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.