27 March, 2012
As I promised on the article’s title, to start using node.js with the right foot and run succesfully an application, you must follow the following 3 steps:
npm install -g express
express projectname && cd projectname && npm install
This last step, creates a new project in node.js using the ExpressJS framework, and then it installs all the necessary dependencies (
npm install). That’s it. If you want to view our sandbox, type on the terminal (inside the project folder)
node app.js. Finally go to http://localhost:3000/ in your browser.