0.0.4 • Published 10 years ago

league v0.0.4

Weekly downloads
1
License
-
Repository
-
Last release
10 years ago

NPM version Dependency Status Analytics

League

A Football League model. Put teams and results in, get a league table history out.

  • One language, one Application Layer, one test suite - each used on both client and server (the Holy Grail?)
  • MVC architecture
  • 100% Handrolled javascript and CSS, no dependecies on 3rd party libraries or frameworks
  • Tested in Chrome, Safari, Firefox, Opera
  • HTML5, CSS3, EcmaScript 5

Todo

  • Responsive CSS
  • Connection to a live result service

Web View

###View league The left and right arrow keys move forward and backward through time.

http://75lb.github.io/league/web/ ###Test http://75lb.github.io/league/web/test-runner/

CLI View

###View league Watch an animation showing the League transform over time.

$ git clone https://github.com/75lb/league.git
$ npm install
$ node cli/app.js

A screencast showing the CLI animation is here. ###Test

$ npm test

API Synopsis

var league = new League();
league.addTeam({ id: "1", name: "Stoke" });
league.addTeam({ id: "2", name: "Port Vale" });
league.addResult({ date: "10 Sep 2012", homeTeamId: 1, awayTeamId: 2, homeGoals: 6, awayGoals: 0 });
console.log(league.getTable("10 Sep 2012"));

NPM

0.0.4

10 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago