Giter Site home page Giter Site logo

music_analyzer's Introduction

Music analyzer

This app will allow last.fm users discover new music based on their current favorited tracks and artists. The first step is already implemented. Users are able to analyze their loved tracks and see which artists scored highest on their list.

Installation

This project is developed with:

  • node version 5.4.1
  • npm version 3.5.3

To install this project run npm install.

If everything works run application by executing npm run dev

Testing

Run npm test to execute all available test.

Technologies and techniques

  1. React.js - I used this library because in my opinion is one of most elegant ways to decouple view layer from the underlying data model. The component approach makes the app simple in testing and easy to understand for developers and designers.
  2. Redux - I user Redux because I believe it fits very well with React. A Clear way of executing actions and managing state changes make it another easy to grasp technology. Similarly to React it makes every bit of code easy to test. Advantages of using this library may not be fully visible at the current stage of project development. I could use React's lifecycle methods to create this simple functionality.
  3. D3 - One of the most popular tool for creating interactive visual elements in the browser. Because it's not fully compatible with how React manages DOM it requires special wrapping with component and slightly different approach.
  4. Server-side rendering I've decided to use this technique for a very simple reason. It allows the page to be visited by search engines and indexed as regular HTML pages.

Tools

  1. ES2016 syntax
  2. Webpack
  3. Express
  4. Mocha and expect

Pros of this choices

  • decoupling view layer from data model
  • high modularity
  • easy to handle state changes
  • testability
  • accessibility

Cons

  • not production ready
  • requires managing both client and server side
  • some parts of the app need to be universal - must work on both client and server

Future improvements

  • There's not much use of server-side rendering at the moment but I believe taking care of it now will pay off in the future
  • I'd suggest adding feature specs in near future
  • Currently, Bootstrap is used to make the look decent. This library is quite heavy. It would be good to remove it and write CSS and JavaScript without using any external libraries
  • The app also requires additional configuration before moving it to production environment
  • For a better state management I'd suggest using Immutable.js or other library for immutable data structures

music_analyzer's People

Contributors

cichaczem avatar

Watchers

 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.