Node.JS basics

I loose lot of time for understand how to work Node.JS and I really don't understand why all the tutorials not speaks about this simple things, because is fucking basics and we most to understand it before the start.

So lets start to understand right now.

Basics:

In a terminal (I use OS X) you need to create a folder for any your app – mkdir myapp

Well, now you have the folder, then you need to create an application file, for example app.js with this command: touch app.js