Category: node.js

How to setup a node.js development environment on Windows

Install node.js It’s easy to install node.js on Windows, just go to node.js official site and download Windows installer, then execute the installer. Congratulations!!! You successfully installed node.js on Windows!!!

Write a todo list with Express and MongoDB

A todo list website is a good practice to learn a programing language or a framework. It shows you how to create, read, update and delete records. In this post we are going to use Express as our application framework … Continue reading

node.js events

Javascript is an event driven language and this is the most important thing that makes node.js an awesome toolkits. Javascript works like human. For example if there are 5 things to do, they are

Javascript callbacks

What is a callback? A callback is a function to be executed after another function is executed. Sounds tongue-twisted? Normally if you want to call function do_b after function do_a the code looks something like

Javascript function scopes and closures

Javascript uses function as scope. Declare a function inside another function creates a different scope. Let’s look at the example code below.

npm basic commands

The most commonly used npm commands After setting up n node.js development environment, you need to know some basic commands of node package manager npm. The followings are the most commonly used ones.

node.js basics

Learning the basics of javascript and node.js After setting up the node.js development environment and know some common uses of npm commands. It’s time to learn the basics of javascript and node.js. Examples and source Examples and source are available … Continue reading

How to setup a node.js development environment on Ubuntu 11.04

Install the latest node.js via apt-get There are several ways to setup a node.js development environment on Ubuntu, you can either choose to download and compile it form source or using apt-get to do the works for you. Because node.js … Continue reading

How to setup a node.js development environment on Mac OSX Lion

Install node.js via Homebrew There are several ways to setup a node.js development environment on Mac, you can either choose to download and compile it form source or using a package management system to do the works for you. Because … Continue reading