background preloader

Felix's Node.js Beginners Guide

Felix's Node.js Beginners Guide
« Home / All Guides There is lots of information about node.js, but given the rapid pace at which it is developing, it can be difficult for beginners to find good, current information on how to get started. This guide aims to provide exactly that, whilst staying updated with the latest stable version of node.js. This guide has been updated to reflect the latest changes in node 0.4.x, the currently stable branch of node.js. Learning JavaScript This guide assumes that you are already familar with JavaScript. Hello World Tutorial This tutorial guides you through installing node.js, including the creation of a simple hello world http server. Installation First of all: You should run a *nix operating system in order to use node.js at this point. The most common way to install node.js is to directly compile it from the downloaded source code. You can get the latest source code from nodejs.org. $ wget $ tar -xzf node-v0.4.4.tar.gz $ cd node-v0.4.4 $ . $ apt-get -y install build-essential Next Steps

http://nodeguide.com/beginner.html

Related:  node.jsNodeJSnew

15 Best Node.js Tools for 2015 Node.js is really getting popular + being used more and more each day and it deserves this attention with the flexibility and performance if offers. Node.js is a server-side JavaScript environment that uses an asynchronous event-driven model. JavaScript is mostly ran/rendered on the client-side, in the browsers. However, Node.js is a server-side JavaScript interpreter and allows us to handle and make requests via JavaScript.

Mongoose models and unit tests: The definitive guide Mongoose is a great tool, as it helps you build Node apps which use MongoDB more easily. Instead of having to sprinkle the model-related logic all over the place, it’s easy to define the functionality as Mongoose models. Querying MongoDB for data also becomes quick and easy – and if you ever need some custom querying logic, that can be hidden away into the model as well. Node.js Frameworks: The 10 Best for Web and Apps Development Running JavaScript outside the browser turned out to be quite magical for JavaScript lovers and is definitely one of the most welcomed moves in the world of web applications development. Developers all around the globe embraced NodeJS with arms wide open. For those who are new, Node.JS is the JavaScript runtime that allows you to run JavaScript code on the server, outside the browser.

NodeSchool Functional Javascript Learn fundamental functional programming features of JavaScript in vanilla ES5. npm install -g functional-javascript-workshop Level Me Up Scotty! Learn to use leveldb, a simple key/value store with a vibrant package. npm install -g levelmeup A TDD Approach to Building a Todo API Using Node.js and MongoDB - Semaphore Learn how to develop a Todo API with Node.js, MongoDB, Mocha and Sinon.js, using the test-driven development approach. Introduction Testing is an integral part of the software development process which helps improve the quality of the software.

Turtle Philosophy: Fixing missing VCBuild.exe From the yeoman generator for angular, when installing socket.io: MSBUILD : error MSB3428: Could not load the Visual C++ component "VCBuild.exe". To fix this, 1) install the .NET Framework 2.0 SDK, 2) install Microsoft Visual Studio 2005 or 3) add the location ofthe component to the system path if it is installed elsewhere. These instructions may be useful when encountering less helpful messages about a missing "VCBuild.exe" file in other programs. You can download the .NET framework v2.0 SDK here. JavaScript Object Creation: Patterns and Best Practices This article was peer reviewed by Tim Severien. Thanks to all of SitePoint’s peer reviewers for making SitePoint content the best it can be! JavaScript object creation is a tricky subject. The language has a multitude of styles for creating objects, and newcomers and veterans alike can feel overwhelmed by the choices and unsure which they should use. But despite the variety and how different the syntax for each may look, they’re more similar than you probably realize.

Write a todo list with Express and MongoDB A todo list website is a good practice to learn a programing language or a framework. It shows you how to create, read, update and delete records. In this post we are going to use Express as our application framework and MongoDB as our data store. dominos API for domino's Pizza This is a node.js wrapper for the Domino's pizza API's This work is licenced via the DBAD Public Licence. npm install dominos By Postal Code One weird trick that will change the way you code forever: JavaScript TDD This is a presentation delivered to the Squiz Melbourne Engineering team. It repeats some of the material I’ve covered in other posts. So apologies if you’re a regular reader and you’ve heard all this before. Introduction One weird trick is a cheesy title, I know.

Build a Complete MVC Website With ExpressJS In this article we'll be building a complete website with a front-facing client side, as well as a control panel for managing the site's content. As you may guess, the final working version of the application contains a lot of different files. I wrote this tutorial step by step, following the development process, but I didn't include every single file, as that would make this a very long and boring read. However, the source code is available on GitHub and I strongly recommend that you take a look. Express is one of the best frameworks for Node. It has great support and a bunch of helpful features. package.json: an interactive guide - browsenpm.org name The unique name of your package and should be down in lowercase. This property is required and your package will not install without it.

Testing APIs with Mocha Testing APIs with Mocha Creating automated tests is something highly recommended. There are several types of tests: unitary,functional, integration and others. In this chapter, we will focus only on the integration tests. In our case we aim to test the outputs and behaviors of the API routes. Creating an API with Express

Authentication using Google’s oAuth api with node.js OAuth authentications are pretty popular now a days and another thing which is popular is JavaScript. This article shows how to plugin google’s oAuth api for authentication in your own node application. The github repo is also available. A background of oAuth OAuth is an authentication technique which provides you a secure and delegate access to some server resources on behalf of the resource owner.

Related: