benjibc / BMVC

Node.js C++ MVC module

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Note: for the demo code to compile, make sure to have socket io module for Node.js installed

npm install socket.io

The live version of this is at Backend : ec2-54-243-140-41.compute-1.amazonaws.com (Open the JavaScript console for the output) Frontend: http://www.xiaoyizhang.me/camera/

TODO: Introduce routing check to make sure there is no infinite loop Make a helper function for redirection

The simplest possible "hello world" node.js module written in C++

This is a super simple module written as a C++ binding. It does not show how to handle async io, but at least it illustrates how the code hooks into node and v8. This is just a place to start...

Download, build and test instructions:

$ git clone git://github.com/lupomontero/node-cpphello.git
$ cd node-cpphello
$ node-waf configure build
$ node test/cpphello.js

More info here: Writing node.js modules in C++

A more detailed article on the How To Node website: http://howtonode.org/how-to-module

Other basic examples (using async io):

About

Node.js C++ MVC module


Languages

Language:C++ 70.4%Language:C 16.9%Language:JavaScript 10.5%Language:Python 2.1%Language:Shell 0.2%