background preloader

Node.js

Facebook Twitter

Brian Ford: Is Node.js Better? API Guide | restify. Restify is a node.js module built specifically to enable you to build correct REST web services. It intentionally borrows heavily from express as that is more or less the de facto API for writing web applications on top of node.js. Why use restify and not express? I get asked this more than anything else, so I'll just get it out of the way up front. Express' use case is targeted at browser applications and contains a lot of functionality, such as templating and rendering, to support that. Restify does not. Restify exists to let you build "strict" API services that are maintanable and observable. In short, I wrote restify as I needed a framework that gave me absolute control over interactions with HTTP and full observability into the latency and characteristics of my applications.

About this guide This guide provides comprehensive documentation on writing a REST api (server) with restify, writing clients that easily consume REST APIs, and on the DTrace integration present in restify. Routing. An Absolute Beginner's Guide to Node.js. There's no shortage of Node.js tutorials out there, but most of them cover specific use cases or topics that only apply when you've already got Node up and running. I see comments every once and awhile that sound something like, "I've downloaded Node, now what?

" This tutorial answers that question and explains how to get started from the very beginning. What is Node.js? A lot of the confusion for newcomers to Node is misunderstanding exactly what it is. The description on nodejs.org definitely doesn't help. An important thing to realize is that Node is not a webserver. By itself it doesn't do anything. Installing Node Node.js is very easy to install. I've Installed Node, now what? Once installed you'll have access to a new command called "node" . $ node > console.log('Hello World'); Hello World undefined In the above example I typed "console.log('Hello World')" into the shell and hit enter. The other way to run Node is by providing it a JavaScript file to execute. Hello.js example_log.txt. Simple REST Service with Node.js and Express - QAT Global.

Introduction This is a simple tutorial showing how to create a REST service with Node.js using Express. This first tutorial will assume you have already installed Node.js, but it will walk you through installing Express and setting up a project. We will also show how to setup a simple REST service and how you can test it. In follow-up tutorials, we will show how to add a web page interface for interacting with the service, add authentication to the service and how to integrate with MongoDB for persistence. If you are unfamiliar with Node.js, please visit their official website. The code for this tutorial is available here on github. Setup The Environment If you don't already have express installed, you can install it with the following command: npm install express -g You will want to create a new directory for your project, so create your project directory and then from within that directory, run the following command to create your new project shell. express npm install -d node app.js app.

Modulus | Application Platform for Developers.

How has Node.js been used?

Node.js. Intro to Node.js. Node.js & Express 101. The best JavaScript IDE with HTML Editor for Web development :: JetBrains WebStorm. CodeTunnel(); Shotgun-client.