Git Product home page Git Product logo

minibeat's Introduction

Chartbeat Front-end Engineering Exercise

By Jason Schapiro

See the live version on minibeat.jasonschapiro.com

A web app called Minibeat that shows the top ten visited pages for gizmodo.com, sorted by current visitor number. Use the provided file structure as a starting point. Modify the file structure to what you think is best.

Each page title in the list (found in the API via page.title) should be preceded by its current visitor number (found via page.stats.people).

The list should poll for updates every 5 seconds and update the DOM to reflect the new data.

When an item in the list is clicked, the right pane should show a list of its top referers (found via page.stats.toprefs). Each referer should include its number of visitors (found via topref.visitors).

It should be formatted like the following wireframe:

-----------------------------------------------------------
| Minibeat                                                |
-----------------------------------------------------------
| ### Page 1                | Page 3 details              |
| ### Page 2                |-----------------------------|
| ### Page 3              > | ### Referer 1               |
| ### Page 4                | ### Referer 2               |
| ### Page 5                | ### Referer 3               |
| ### Page 6                | ### Referer 4               |
| ### Page 7                | ### Referer 5               |
| ### Page 8                |                             |
| ### Page 9                |                             |
| ### Page 10               |                             |
-----------------------------------------------------------

Rules:

  • Do not use jQuery or any other frameworks/languages (i.e. use pure JavaScript and CSS).

  • We are interested in how you structure large applications.

  • Do just enough so we can evaluate your understanding of JavaScript, HTML and CSS.

  • It should work in modern (HTML5) browsers. Focus on Chrome, Firefox, and Safari. IE compatibility is nice but don't spend too much time on it.

NOTE: You need to fill in a valid chartbeat API key in cbUtils.js to run this yourself!

minibeat's People

Contributors

dannyzen avatar yono38 avatar

Watchers

 avatar  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.