background preloader

Node.js

Facebook Twitter

Mastering Node - Open Source Nodejs eBook. The Node Toolbox. Keep a node.js server up with Forever - blog. One of the great benefits of using node.js is the reduction in dependencies needed to run a production web application. By using the 'http' module we can run a stand-alone web server in node.js without the need for a separate server like Apache or nginx. The caveat of not having to use these servers is that their concerns are now the concerns of the node.js application developer. The concern that we will discuss in this article is that of fault tolerance, or how to automatically restart your server when it crashes or enters an invalid state.

Before we dive into how to use Forever, lets setup the 'hello world' web server that we will later run with Forever. The above code starts a web server that will respond to all requests with 'hello, i know nodejitsu'. Starting this server is easy: $ node simple-server.js > hello world running on port 8000 $ nohup node simple-server.js > output.log & [1] 23909 This will start our server process in the background and append all output to 'output.log'.

Mape/node-express-boilerplate - GitHub. Useful Node.js Tools, Tutorials And Resources - Smashing Coding. Advertisement Created by Ryan Dahl in 2009, Node.js is a relatively new technology which has gained a lot of popularity among Web developers recently. However, not everyone knows what it really is. Node.js is essentially a server-side JavaScript environment that uses an asynchronous event-driven model.

What this means is simple: it’s an environment which is intended for writing scalable, high performance network applications. And that’s not all: what’s really great about Node.js is the thousands of modules available for any purpose, as well as the vibrant community behind this young project. Useful Node.js Tools Node Express Boilerplate Node Express Boilerplate gives the developer a clean slate, while bundling enough useful features to remove all of those redundant tasks that can derail a project before it even gets started.

Log.io Your infrastructure may have hundreds of log files spread across dozens of machines. Node Supervisor This is a little supervisor script for Node.js. (al) Christkv/node-mongodb-native - GitHub. Nowjs for Node - Directly call remote functions in Javascript. Mranney/node_redis - GitHub. Visionmedia/jade - GitHub. Redis. Nrstott/bogart - GitHub. Installing Node.js via package manager - GitHub. Introduction à node.js - Damien MATHIEU. Learning Server-Side JavaScript with Node.js. Jchris/tweasy - GitHub. Npm registry.