The architecture of JavaScriptMVC

Exclusive offer: get 50% off this eBook here
Learning JavaScriptMVC

Learning JavaScriptMVC — Save 50%

Learn to build well-structured JavaScript web applications using JavaScriptMVC with this book and ebook

$14.99    $7.50
by Wojciech Bednarski | September 2013 | Open Source Web Development

The architecture of JavaScriptMVC is modular. The powerful stack contains everything we need to build a well organized, tested, and documented application.

In this article by Wojciech Bednarski, author of Learning JavaScriptMVC, we will devle into the following key components of JavaScriptMVC:

(For more resources related to this topic, see here.)

DocumentJS

DocumentJS is an independent JavaScript documentation application and provides the following:

  • Inline demos with source code and HTML panels
  • Adds tags to the documentation
  • Adds documentation as favorite
  • Auto suggest search
  • Test result page
  • Comments
  • Extends the JSDoc syntax
  • Adds undocumented code because it understands JavaScript

FuncUnit

FuncUnit is an independent web testing framework and provides the following:

  • Test clicking, typing, moving mouse cursor, and drag-and-drop utility
  • Follows users between pages
  • Multi browser and operating system support
  • Continuous integration solution
  • Writes and debugs tests in the web browser
  • Chainable API that parallels jQuery

jQueryMX

jQueryMX is the MVC part of JavaScriptMVC and provides the following:

  • Encourages logically separated, deterministic code
  • MVC layer
  • Uniform client-side template interface (supports jq-tmpl, EJS, JAML, Micro, and Mustache)
  • Ajax fixtures
  • Useful DOM utilities
  • Language helpers
  • JSON utilities
  • Class system
  • Custom events

StealJS

StealJS is an independent code manager and build tool and provides the following powerful features:

Dependency management

  • Loads JavaScript and CoffeeScript
  • Loads CSS, Less, and Sass files
  • Loads client-side templates such as TODO
  • Loasd individual files only once
  • Loads files from a different domain

Concatenation and compression

  • Google Closure compressor
  • Makes multi-page build
  • Pre processes TODO
  • Can conditionally remove specified code from the production build
  • Builds standalone jQuery plugins

Logger

  • Logs messages in a development mode

Code generator

  • Generates an application skeleton
  • Adds the possibility to create your own generator

Package management

  • Downloads and install plugins from SVN and Git repositories
  • Installs the dependencies
  • Runs install scripts
  • Loads individual files only once
  • Loads files from a different domain

Code cleaner

  • Runs JavaScript beautifier against your codebase
  • Runs JSLint against your codebase

Resources for Article :


Further resources on this subject:


Learning JavaScriptMVC Learn to build well-structured JavaScript web applications using JavaScriptMVC with this book and ebook
Published: May 2013
eBook Price: $14.99
Book Price: $24.99
See more
Select your format and quantity:

About the Author :


Wojciech Bednarski

Wojciech Bednarski is a software engineer with expert knowledge of client-side technologies. He is passionate about JavaScript, Node.js, HTML5, Ruby, NoSQL, and POSIX-compliant systems.

While at university he started taking up freelance jobs and was obsessed by web accessibility and usability as well as web standards.

Then, he moved to Warsaw where he started working as a web developer at eo Networks, which is recognized as one of the 50th fastest growing company in Central Europe.

He then started work at Roche, one of the largest pharmaceutical companies in the world, where he worked on large scale web-based systems as well as conducted workshops and technical seminars. He was recognized with an Informatics Service Award in the category of Innovation.

He then moved to Copenhagen and started work at YouSee, the subsidiary of TDC, the biggest Danish telecom company, where he programmed set top boxes. He won Copenhagen Startup Weekend and also began the Everplaces startup.

At the time of writing this book, he is a consultant for a New York-based company working on the next big thing you will use. He works from different places and lives with his beautiful wife and two black cats. He also loves taking pictures, you can have a sneak peek at www.pixmod.net. He is also fond of driving sports cars and traveling.

You can visit his professional profile at www.linkedin.com/in/bednarski/ or you can follow him on Twitter @wbednarski.

Books From Packt


Object-Oriented JavaScript
Object-Oriented JavaScript

Object-Oriented JavaScript - Second Edition
Object-Oriented JavaScript - Second Edition

Drupal 6 JavaScript and jQuery
Drupal 6 JavaScript and jQuery

Joomla! 1.5 JavaScript jQuery
Joomla! 1.5 JavaScript jQuery

Moodle JavaScript Cookbook
Moodle JavaScript Cookbook

JavaScript Testing Beginner's Guide
JavaScript Testing Beginner's Guide

Developing Windows Store Apps with HTML5 and JavaScript
Developing Windows Store Apps with HTML5 and JavaScript

Learning jQuery : Better Interaction Design and Web Development with Simple JavaScript Techniques
Learning jQuery : Better Interaction Design and Web Development with Simple JavaScript Techniques


No votes yet

Post new comment

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
f
9
C
h
B
3
Enter the code without spaces and pay attention to upper/lower case.
Code Download and Errata
Packt Anytime, Anywhere
Register Books
Print Upgrades
eBook Downloads
Video Support
Contact Us
Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Resources
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software