Sunday, February 23, 2014

2/23/2014


More on nodejs

Well, I thought of jumping right into tuts+ tutorial on node.js but before that I wanted to know more details about node.js. Things like why should I use node.js, and how is it going to help me and where? And following is what I found:
  • Node.js is a command line tool (or some people call it as a JavaScript environment) that helps to run JavaScript programs.
  • You can build a regular web server with node.js in no time (rather surprising as I remember the days when I was looking to set up a local web server like IIS, Apache tomcat, etc. to help me develop some html stuff on my local PC).
  • V8 is Google's open source JavaScript engine and node.js is built on top of V8.
  • When you build a web server with node.js, you can share code between browser and backend
  • You can even connect to a database like mysql
  • Node.js uses a module architecture and this helps to build complex applications easily.
  • To effectively run a company (either a micro company or a major corporation), you need a manager to manage the show. Node.js is no less. It has a package manager, called Node Package Manager (NPM) that helps you to install new modules.
  • You want to write a JavaScript program and run it using Node.js, you basically need the modules that are provided by node.js. You can check for any new modules available on Github. How to install new modules using the node package manager?
  • npm install new_module



No comments:

Post a Comment