Getting started with Nodejitsu on Windows by deploying a MEN framework

Disclaimer: I’m in no way affiliated with Nodejitsu or any of the frameworks that I listed below in the post. I’m just documenting my experience with them – problems (and solutions) I’ve faced while trying these new technologies on a Windows machine.

MEN – MongoDB, Express, Node.js, and if you think MEN is not mean enough, take a look at the post on Deploying to Nodejitsu from Windows machine.

Nodejitsu is a cloud platform as a service based on Node.js and serves Node.js applications on their platform. Signup is free, you don’t have to enter billing info in order to try 2 months free (yes, databases work too!), just click on the “Do not select a product now” button:
After signing up you get a confirmation mail like this:

Setting up databases in the web admin interface is easy as you only have to literally click one button after deciding which database type and provider you want:

Hackaton starters are gaining momentum  and there are quite a few of them already like:

I decided to try out Skeleton, mainly because I liked the “just right” Goldilocks reference :)

So, as the site suggests, you first have to install nodemon , gulp and mocha , then clone the github repo, npm & bower install everything and you’re done:

Everything works for you? Great! For the rest of unlucky ones, you may got (like me) after running  gulp :

I tried  npm install jshint-stylish , and ran gulp again:

As the message says (note also on their website),   gulp notify , which uses node-notify  is not supported on Windows. The way I solved this was that I removed all of the .pipe(notify({ onLast: true, message: 'Scripts task complete' }))  lines from gulpfile.js, but it still wasn’t enough! Running lint job made the gulp fail, so I removed that to and woila then it all worked.

A note (though you can look this up on the official github page also) on how to setup Google login by:

  • Visit Google Cloud Console
  • Click CREATE PROJECT button
  • Enter Project Name, then click CREATE
  • Then select APIs & auth from the sidebar and click on Credentials tab
  • Click CREATE NEW CLIENT ID button
    • Application Type: Web Application
    • Authorized Javascript origins: http://localhost:3000
    • Authorized redirect URI: http://localhost:3000/auth/google/callback
  • Copy and paste Client ID and Client secret keys into config/config.js

:exclamation:Note: When you ready to deploy to production don’t forget to add your new url to Authorized Javascript origins and Authorized redirect URI, e.g. and respectively. The same goes for other providers.

Deploying to Nodejitsu is done by firstly  loging in and then executing  jitsu deploy:

Boom, your app is live on Nodejitsu server and it should look like this (ofc YMMV in term of link):

Leave a Reply

Your email address will not be published. Required fields are marked *