Nodejs

From Objectif Client Inc
Revision as of 16:16, 26 January 2015 by Nicolas Rollin (talk | contribs) (Created page with "== Installation == === Install Node === * Web site link [http://nodejs.org] * Download Tar "node-v0.10.35.tar.gz" (version number may be different * untar tar -zxvf node-v0....")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Installation

Install Node

  • Web site link [1]
  • Download Tar "node-v0.10.35.tar.gz" (version number may be different
  • untar tar -zxvf node-v0.10.35.tar.gz
  • cd node-v0.10.35
  • Run configure : ./configure
  • Run make : make
  • Run make with install : sudo make install

Install Express

  • sudo npm install -g express-generator

First App

  • Create your app directory mkdir myapp
  • Go into directory : cd myapp
  • Run express : express
  • Run npm  : npm install
  • test App ./bin/www