Yafra edited this page Aug 4, 2015 · 6 revisions

nodejs

"Node.js® is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications."

Administration

Nodejs has its own package manager which can be controlled through a local file. It comes in very handy for dependencies.

The nodejs is installed through the ubuntu distribution, microsoft windows package on nodejs or by brew on os/x.

The following modules are globally needed (run npm instal -g xxxx):

  • karma
  • protractor
  • bower
  • cordova and ionic if you develop for mobiles

other packages should be installed locally via package.json.

bower is another package manager for javascript. local installations are managed through bower.json. To control to install without devDependencies use: bower install --production

Automation / build

The preferred way is using gulp (http://gulpjs.com/) to automate building final files for deployment (like SASS compilation) or automate tests. Grunt (http://gruntjs.com/) would be an alternative tool but the preference is with gulp for yafra examples.

Tests

Using the following tools as they work with server side development as well with angularJS :

  • Jasmine
  • Karma
  • Protractor
  • InstanbulJS (code coverage)

Apps

The Nodejs Project uses a MongoDB database and is build on top of Express. Express provides RESTful API's which is used in the example in order to have beside a web client as well a fat client like a mobile app.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.