4. Server Side Javascript
Server Side Javascript needs:
Package management and Modular
Task Management Tools, like maven in java;
Quality Assurance Utilities
− Static Check
− Unit Test
5. Writing Modular JavaScript
Modularity
AMD: Asynchronous Module Definition
define(
module_id /*optional*/,
[dependencies] /*optional*/,
definition function /*function for instantiating the module or object*/
);
8. Basic Grunt.js tasks
init
Generate project scaffolding from a predefined template
lint
validate files with jshint
min
minify files with UglifyJS
server
Start a static node web server
test
Run unit tests with nodeunit. (Jasmine support)
9. Outline
Server Side Javascript
Environment Preparation
Static Check & Unit Test
10. Install NodeJs
Install via source code
Download from
nodejs.org/download
./configure & make & make install
Install via package manager
su -c 'yum install npm'
Dependencies
V8 Javascript Engine