##Ubuntu Server
sudo apt-get install g++ curl libssl-dev apache2-utils git-core make
cd /usr/local/src
wget http://nodejs.org/dist/v0.10.28/node-v0.10.28.tar.gz
tar -xvzf node-v0.10.28.tar.gz
cd node-v0.10.28
const os = require('os'); | |
if (os.platform() == 'win32') { | |
// Windows | |
var path_folder = __dirname.split("\\"); | |
} else { | |
// Linux / MacOS | |
var path_folder = __dirname.split("/"); | |
} |
// Require our core node modules. | |
var Q = require( "q" ); | |
// Require our core application modules. | |
var friendService = require( "./friend-service" ); | |
// ----------------------------------------------------------------------------------- // | |
// ----------------------------------------------------------------------------------- // |