Category Archives: Node.JS

What’s the difference between dependencies, devDependencies and peerDependencies in npm package.json file?

Summary of important behavior differences: dependencies are installed on both: npm install from a directory that contains package.json npm install $package on any other directory devDependencies are: also installed on npm install on a directory that contains package.json, unless you pass the –production flag (go upvote Gayan Charith’s answer). not installed on npm install “$package”… Read More »

Getting Start With Node.JS Tools For Visual Studio

Table of contents 1. Introduction 2. What Node.JS is 3. How to install Node.JS 4. Let’s Start by Creation of a Simple App Pre-requites Create Skeleton/Empty ASP.Net project Discussing Node.JS templates From Existing Node.JS code Blanks Node.JS Console Application Folder Structure Install/Update Node dependencies Blanks Node.JS Web Application Folder structure Visual Studio Intellisence Experience Basic… Read More »

Folder structure for a Node.js project

Concerning the folders you mentioned: /libs is usually used for custom classes/functions/modules /vendor or /support contains 3rd party libraries (added as git sub-module when using git as source control) /spec contains specifications for BDD tests. /tests contains the unit-tests for an application (using a testing framework, see here) NOTE: both /vendor and /support are deprecated… Read More »

Node.js

Node.js is a very powerful JavaScript-based framework/platform built on Google Chrome’s JavaScript V8 Engine.It uses an event-driven, non-blocking I/O model that makes it lightweight and efficient. It is an open-source and cross-platform framework based on Google’s V8 JavaScript Engine. It was developed by Ryan Dahl and other developers working at Joyent. It was first released… Read More »