Setting up a simple Node App

Posted in Uncategorized

Tweet This Share on Facebook Bookmark on Delicious Digg this Submit to Reddit

Assuming that you have already installed Node and npm, we create a project folder called “simple” …

mkdir simple
cd simple
npm init

Use all the default response to the npm prompts. This gives us a package.json and assumes index.js as your starting point.

Type the following into your index.js, which was taken from NodeJs.org getting started guide

Type “node index.js” in your terminal and open browser to http://localhost:3000/ and you got your simple Node app that says “Hello World”.


Related Posts

Tags

Share This