This is a project foundation for C++ SWIG, node-addon-api (napi) and nodejs. It is based on autotools and lets you call C++ code from nodejs. It also lets you call javascript code (in the main nodejs thread) from a C++ thread.
You will need node-addon-api. Install in /usr/local and link to /usr/local/include :
cd /usr/local
git clone [email protected]:nodejs/node-addon-api.git
cd include
ln -s ../node-addon-api
You will also need libnodejs and a recent version of swig installed on your system.
./autogen.sh
./configure
make
cd test
./RunTest.js
make install
make uninstall