MVC vs Flux – which one is better?

MVC (client side) Flux Born on 1976 Born just a few years ago Bi directional data flow Uni directional data flow Data binding is the key Events or actions are the main players Controllers handles the business logic Store does all calculations Somewhat synchronous Can be implemented as completely asynchronous A trusted architecture used by

Read More…

A comprehensive tutorial of VoidCanvas-cli

npm install -g voidcanvas Use node.js v4.1.2 or greater. Assuming that you are familiar with node.js and have already installed void canvas cli in your computer globally, using the command given above; I’m starting the hows’ and whys’ of this Command Line Interface. What is this cli for In simple words, it just gives you

Read More…

sync-node : a npm module which makes node synchronous without blocking the main thread

$ npm install sync-node Though on those rising days of JavaScript there was a debate on whether asynchronous programming is good or bad, but eventually with the massive growth of JavaScript and it’s modules and the success of its frameworks, it’s kind of an established fact that asynchronous programming method has nothing bad in it.

Read More…

Authentication using Google’s oAuth api with node.js

OAuth authentications are pretty popular now a days and another thing which is popular is JavaScript. This article shows how to plugin google’s oAuth api for authentication in your own node application. The github repo is also available. A background of oAuth OAuth is an authentication technique which provides you a secure and delegate access

Read More…

How to install postgresql, run the server and connect using cli?

This article describes the installing and starting the postgresql in simple steps. This will also show you how to write the first query, so that after finishing the article you get all set to start using postgresql. Installing postgresql Graphical installation in any OS is relatively easier. You can download the appropriate setup from official

Read More…

How to write a basic read write operation of neo4j with node.js in express apis?

As you have landed on this article, I assume you already know what neo4j or graph database is. This article describes how to expose express.js apis to do a very basic write and read operation. You can do it without using express also. Things to be known Neo4J uses cypher query language. Neo4J provides very

Read More…

How to make ajax calls synchronous in JavaScript without blocking anything using ES6 generators

Have you ever been in a situation where you have more than one calls, but you want them to be fired one by one? I have come across a similar scenario and here I am writing about the solution of the problem. What this article is NOT about This is not about something like the

Read More…

Data binding in Angular JS 2.0 with examples

Angular 2.0 is still beta (I’m using beta.1 here). If you find any difficulties to implement those what’s written in the article (though I will try to keep the article updated always), please post a comment about that. Refer to the github repo for working examples. Since the dawn of JavaScript frameworks, data-binding played the

Read More…