background preloader

Node.js partie 1 - Tout ce que vous devez savoir sur Node.js - Web Tambouille 3.0

Node.js partie 1 - Tout ce que vous devez savoir sur Node.js - Web Tambouille 3.0
Parmi les nombreuses technologies qui me passionnent actuellement, Node.js tient une place importante. Et pour plusieurs raisons : développement Javascript côté serveur, gestion des entrées/sorties de manières non bloquantes, communauté très présente avec de nombreux modules comme Socket.IO et bien d’autres choses encore. C’est pour toutes ces raisons, et aussi parce que la nouvelle version 0.4.0 vient de sortir, que Web Tambouille vous propose une série de 4 billets consacrée exclusivement à votre futur serveur préféré : Node ! Et cela commence dès aujourd’hui avec une petite introduction générale du serveur, ses concepts, les interviews et autres vidéos à ne pas manquer, les liens à connaître… bref un condensé de tout ce que vous devez absolument savoir sur Node ! Présentation Node s’appuie sur V8, le moteur Javascript de Google utilisé dans Chrome, qui fait partie des moteurs Javascript les plus puissants du marché actuellement. Prenons l’exemple du serveur Apache. Juste pour pinailler

Cross-compile node.js on ARM - the WigWag devblog. 3/5/13 –> We don’t have time to post updates right now, but if you need a working script for node 0.8 using an ARM toolchain, see example Gist here Note: the information was current as of node 0.7.0 top of tree, from circa Jan 21, 2012. So modify as necessary. There are three major steps/challenges in getting node.js to compile on ARM We need to get V8 to compile on your target arch. We are going to assume that you have successfully got V8 compiling for your hardware. Understanding the node.js build process. As of 0.6.x, node.js uses gyp (Generate Your Projects) from the Chromium project. node is configured using a python script, configure, in the root of the source. configure has an option for cross compile, –dest-cpu=ARCH where it says arm, ia32 and x64 are valid architectures. Full cross compile support does not really seem to be baked into node.js yet. setup-cross.sh For this script to work, I ended up needing to make some minor changes to node 0.7.0. So we need armv7 to ! and

Node.js Tuto Part2 Suite de la série de billets consacrés à Node.js. Après une petite introduction de ce serveur Javascript, nous allons faire un petit tour du côté des environnements de développement. Un précédent article de Web Tambouille avait déjà détaillé comment débuguer une application Node par Eclipse ou à l’aide de node-inspector. Moyennant l’installation du Eclipse debugger plugin for V8, il sera donc possible d’utiliser tout IDE qui s’appuie sur le noyau Eclipse : Eclipse Classic, Eclipse for Javascript Developpers, Aptana et bien d’autres encore. De même, en choisissant de faire le debug de l’application dans node-inspector, tout éditeur de texte pourra être utilisé pour le développement : VIM, TextMate ou votre éditeur préféré ! Je vais donc vous présenter un tout autre IDE à savoir Cloud9. Au menu : Yet another Javascript IDE, installation, utilisation, points forts, points faibles, roadmap et une petite conclusion. Yet Another Javascript IDE ? . Installation Pour l’utiliser, 2 possibilités :

JavaScript Un article de Wikipédia, l'encyclopédie libre. Le langage a été créé en 1995 par Brendan Eich (Brendan Eich étant membre du conseil d'administration de la fondation Mozilla) pour le compte de Netscape Communications Corporation. Le langage, actuellement à la version 1.8.2, est une implémentation de la 3e version de la norme ECMA-262 qui intègre également des éléments inspirés du langage Python. La version 1.8.5 du langage est prévue pour intégrer la 5e version du standard ECMA[3]. Histoire[modifier | modifier le code] LiveScript et Mosaic Communications Corporation[modifier | modifier le code] Brendan Eich a initialement développé un langage de script côté serveur, appelé LiveScript, pour renforcer l'offre commerciale de serveur HTTP de Mosaic Communications Corporation. Netscape et ECMAScript[modifier | modifier le code] En , Sun et Netscape annoncent[5] la sortie de JavaScript. Netscape soumet alors JavaScript à Ecma International pour standardisation. La syntaxe Liste plus complète

Node.js on Android I mainly use node.js since one year ago at work, and I really like it. On my work project, I have to create a system which uses socket.io, but I don't have enough time to re-create a system using Android Java. But I finally figure out how to run node.js on Android. * This is really advanced topic, so I don't aim for Android beginners. 1. First of all, you have to obtain root permission of your Android. 2. Debian kit for Android is really awesome tool. Debian kit for An Instr $> cd /data/local/tmp $> wget $> sh debian-* ... ... 3. Before install node.js, you also need couple of debain packages. #> apt-get install openssl build-essential python libssl-dev git-core To install node.js for Debian, you might need to compile node.js from source code. If your Android uses ARM architecture, you might be get couple of errors. #> . Congratulation!

Node.js Tuto Part4 Dernier article (et oui déjà) de la série consacrée à Node.js et, maintenant que nous avons codé notre première application Node.js Web Sockets et HTML5, nous allons terminer en beauté le déploiement de l’application sur le cloud. Et c’est le sujet de cette 4ème partie avec l’étude du service Nodester, une plateforme de déploiement open source d’applications Node. Nous allons regarder de plus près comment fonctionne cette plateforme, comment déployer notre application et où se trouve t-elle, comment gère t-elle les modules Node… en bref : qu’est-ce que Nodester et comment l’utilise t-on ! Au menu : introduction (EC2, Git…), les outils pour Nodester, détail de l’API REST, enregistrement au service et déploiement de l’application, déploiement d’une autre application, les plateformes de déploiement sur le cloud équivalentes et enfin une petite conclusion. Introduction Nodester est une plateforme de déploiement d’applications Node sur le cloud. Pas mal non ? Outils Ready ? Voilà ! That’s all !

Node.js Camp How to write your own native Node.js extension - Olivier Lalonde's blog UPDATE: There is now a Node.js addon for loading and calling dynamic libraries using pure JavaScript: node-ffi. Also, node-waf is no longer being used to compile Node.js extensions. TRANSLATIONS: This post was translated to Chinese: Introduction This is a follow up to How to roll out your own Javascript API with V8. We will now port the code we have written for V8 to Node.js and package it for npm. The full source code of this tutorial is available from github: git clone You can also install it through npm: npm install notify The code was tested on Ubuntu 10.10 64-bit and Node.js v0.5.0-pre. Getting started First let’s create a node-notify folder and with the following directory structure. This fine looking tree was generated with the tree utility. Now let’s create our test script demo.js and decide upfront what our extension’s API should look like: Writing our Node.js extension

Node.js Tutorials and resources 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)

Understanding node.js Node.js has generally caused two reactions in people I've introduced it to. Basically people either "got it" right away, or they ended up being very confused. If you have been in the second group so far, here is my attempt to explain node: It is a command line tool. You download a tarball, compile and install the source.It let's you run JavaScript programs by typing 'node my_app.js' in your terminal.The JS is executed by the V8 javascript engine (the thing that makes Google Chrome so fast).Node provides a JavaScript API to access the network and file system "But I can do everything I need in: ruby, python, php, java, ... !". I hear you. "Get to the point!" Alright, I will. "Huh?" That's right, everything runs in parallel, except your code. The day starts by one servant waking up the king and asking him if he needs anything. Once a servant finishes a task, he lines up outside the kings quarter to report. "That's fantastic, but could you quit the silly metaphor and speak geek to me?" Sure. No.

How to get started with Node.JS Node Beginner

Related: