Skip to content

based on work by Nicholas C. Zakas, this is a POC not production code yet.

Notifications You must be signed in to change notification settings

kkys4bfgp75be9p/scalable-javascript-architecture

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Scalable javascript architecture based on work by Nicholas C. Zakas

###Key Concepts:

  • Loose coupling between modules
  • Consistent sandbox interface to the application core (i.e. interfaces over implementation paradigm)
  • Modules only access DOM elements in their box
  • Modules don't create global objects
  • Modules only access the sandbox the rest of the architecture doesn't exist to a module
  • Sandbox can limit module access to core methods
  • Application core manages modules and communication between modules
  • Application core does general error handling
  • Application core is extensible
  • Base library (jQuery YUI etc...) is abstracted in the Application core

###To Run Tests:

  • clone project
  • cd scalable-javascript-architecture
  • open jasmine/SpecRunner.html in the browser you want to test

###TODO:

  • Complete unit testing!

About

based on work by Nicholas C. Zakas, this is a POC not production code yet.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published