Skip to content
This repository has been archived by the owner on Dec 17, 2018. It is now read-only.

An alternative to a classic js Todo App that is meant to be less coupled and follow Addy Osmani`s Patterns For Large-Scale JavaScript Application Architecture approach.

radekstepan/fundamental.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An alternative to the "classic" example Todo App by Jérôme Gravel-Niquet and later Addy Osmani.

Use

Run ./webserver.sh to get past Access-Control-Allow-Origin policy.

Architecture

The app is based on backbone.js treating Views as app modules that send notifications handled by an internal Mediator pattern. If the different js files were loaded using AMD, it would represent an example of Addy Osmani`s Patterns For Large-Scale JavaScript Application Architecture approach.

Modules

The modules do not communicate between each other, only talk to the Model and trigger notifications. They are:

  • CreateTodoView that represents the input field for new tasks
  • TodoListView that creates a list of...
  • TodoView items
  • and when these items are updated, TodoStatsView is updated

Documentation

Look into the doc folder for a split comments-code view generated by pycco.

Future

This app will be updated as my understanding of JS apps increases through active use at work. These will be definitely added:

  1. AMD
  2. Unit tests

Rants

Oh and I believe Views should be called Presenters.

About

An alternative to a classic js Todo App that is meant to be less coupled and follow Addy Osmani`s Patterns For Large-Scale JavaScript Application Architecture approach.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published