NODEJS “CORS Errors”

NodeJS can be configured to use CORS as means of communicating from the front-end. This can be configured in your app.js as middleware for the popular Express package. CORS errors look something like this: Both servers are running on different ports. Remember that different port consists as a cross domain request. localhost:8080 is a different …

Mongodb New Developer Q & A

Some questions about mongodb which I set about trying to find answers to before I started using it for a big project. Hopefully to help you get to know mongodb better to see if it suits your needs. MongoDB uses BSON documents to store data. What is BSON? “BSON is a binary-encoded serialization of JSON-like …

Nodejs HowTo detect OS version

Create a script to detect OS var async_exec = require(’child_process’).exec async_exec(’npm install shelljs’, function (err, stdout, stderr) {   require(’shelljs/global’);   var os = require(’os’);   echo(’Testing OS environment’);   /*     What platform you’re running on: ‘darwin’, ‘freebsd’, ‘linux’, ‘sunos’ or ‘win32’     win32 (for 32 or 64 bit)   */   …

Nodejitsu Deploy Private Github Repo Error

nodejitsu Error 502 deploy:github:no_pkg_json I’m trying to auto deploy my nodejs application from github to nodejitsu. I have already setup my webhook to nodejitsu and everything works fine when the github repository is public. Now I have made my github repo private i’m seeing an error when i commit changes. Nodejitsu emails me the error: …