Subscribe via RSS Feed

A quick guide to MongoDB to work with

March 25, 2015 0 Comments

We have used some useful commands of MongoDB in our project work.Here we would like to discuss most of them so that they can be used for quick reference or quick guide.These commands can be executed from MongoDB shell. Before we jump in You can download MongoDB from here. We are skipping the installation part [...]

Continue Reading »

Single page Application with Angularjs, Minimalweb Node MVC and MongoDB

February 24, 2015 1 Comment
Single page Application with Angularjs, Minimalweb Node MVC and MongoDB

In this post, we have made a Single Page Application with Angularjs, Minimalweb Node MVC and MongoDB. Brief Background Lot of tutorial are already there in web regarding the MEAN (MongoDb,Expressjs,Angularjs and Nodejs) stack. Here we have followed the same path, except for the Express.js framework. We have used minimalweb framework for the server MVC. [...]

Continue Reading »

Execute Redis Commands with Node.js without Driver

January 22, 2015 0 Comments
Execute Redis Commands with Node.js without Driver

We had written about redis commands through node.js previously. Below is a code snippet, where we have connected and executed redis commands from node.js without using any driver. Steps taken – 1> First we have started Redis in our machine. 2> We have written a bare minimum socket program to connect the redis host and [...]

Continue Reading »

Use of process.nextick in node.js

January 9, 2015 0 Comments
Use of process.nextick in node.js

This is a post for a quick go through of node.js process.nextTick method implementation. As we have searched around web, we found that any code snippet within node.js process.nextTick ensures that the mentioned code snippet will execute in next event loop of node.js before doing any I/O bound work. Also we found that process.nextTick function [...]

Continue Reading »

Implement Caching Server with Express.js custom middleware

January 8, 2015 0 Comments
Implement Caching Server with Express.js custom middleware

In this article, we explored the capability of expressjs custom middleware. We have made a minimal cache server implementation in expressjs middleware, which will serve as cache for GET web requests. So below is the main server code implementation with inline documentation. Server.js var express = require(‘express’); var app = express(); var cache = require(‘./cacheServer’); [...]

Continue Reading »

Nginx Caching Functionality

January 7, 2015 0 Comments
Nginx Caching Functionality

In this post we will explore some of the caching capabilities of nginx. Previously we have explored some functionality of nginx as load balancer. Below are the articles – 1> Configure node.js application server with nginx 2> Configuring Load Balancer with Nginx and Node.js 3> Nginx as a Load Balancer – some details as we [...]

Continue Reading »

Haproxy as Load Balancer – some details as we have explored

January 6, 2015 0 Comments
Haproxy as Load Balancer – some details as we have explored

We had written about load balancing with nginx in our previous article. Now in this article we will try to discuss some of the load balancing schemes in haproxy and their configuration in web applications. Haproxy server can be used to distribute the load balancing of web request to different web/ application servers. The main 2 [...]

Continue Reading »

Configuring Load Balancer with Haproxy and Node.js

January 5, 2015 0 Comments
Configuring Load Balancer with Haproxy and Node.js

Load Balancing is needed to distribute load of work across multiple resources – in computer science terminology, these multiple resources can be pieces of software or hardware, where same work processes are waiting to be executed on processing request. So in web application, we will need to do load balance to control user requests to [...]

Continue Reading »

Nginx as a Load Balancer – some details as we explored

January 4, 2015 0 Comments
Nginx as a Load Balancer – some details as we explored

A complex web application will consist Load Balancer at front web request handling. A picture of a typication web application deployment environment can be drawn as below – We had written about round-robin load balancing of nginx with node.js in our previous article. Now in this article we will try to discuss some of the [...]

Continue Reading »

Configuring Load Balancer with Nginx and Node.js

January 3, 2015 1 Comment
Configuring Load Balancer with Nginx and Node.js

Load Balancing is needed to distribute load of work across multiple resources – in computer science terminology, these multiple resources can be pieces of software or hardware, where same work processes are waiting to be executed on processing request. So in web application, we will need to do load balance to control user requests to [...]

Continue Reading »

Configure node.js application server with nginx

January 2, 2015 1 Comment
Configure node.js application server with nginx

Generally we want to integrate any web application to run as fast as possible. To make this case viable as much as possible, our solution approach should be in web front end and back end. For front end there are multiple optimization elements like – A> Load Balancing B> Caching C> Serving Static Resources from [...]

Continue Reading »

Server side testing with Mocha for Node.js

January 1, 2015 0 Comments
Server side testing with Mocha for Node.js

This article is a continuation of our previous articles about Single Page Application with Angular.js, Node.js and MongoDB part 1 and part 2. In general, we appreciate unit testing in application, because at the time of delivery, we have much confidence about our piece of software regarding non-breaking of the code-base in production. There are [...]

Continue Reading »

Single Page Application with Angular.js, Node.js and MongoDB (MongoJS Module) – (Updated for Express 4) – Part 2

December 31, 2014 2 Comments
Single Page Application with Angular.js, Node.js and MongoDB (MongoJS Module) – (Updated for Express 4) – Part 2

We had posted article for Single Page Application with Angular.js, Node.js and MongoDB (MongoJS Module) – (Updated for Express 4) – Part 1 where we mainly discussed the node.js server side section of the article. In this post we will describe about the Angularjs client part of the application. As this article is a continuation of the [...]

Continue Reading »

Angular.js Server Side

December 30, 2014 0 Comments
Angular.js Server Side

In the previous articles we have went through many features in angular.js. If you observe them, you can see that in those articles we have never used server side scripting. All of them were based on client side scripting. Why we are in need of server side scripting? Every SPA framework out there relies on [...]

Continue Reading »

Single Page Application with Angular.js, Node.js and MongoDB (MongoJS Module) – (Updated for Express 4) – Part 1

December 29, 2014 2 Comments
Single Page Application with Angular.js, Node.js and MongoDB (MongoJS Module) – (Updated for Express 4) – Part 1

We had posted article for Developing Web Application with Node.js, Express.js and MongoDB (MongoJS module) . Here we have updated the application with Express 4, added testing for both Angular.js and node.js related methods. We will cover all the testing related works in our other posts, which will come eventually. So our application is now as [...]

Continue Reading »

An introduction with winkfame.com

October 25, 2014 1 Comment
An introduction with winkfame.com

Recently we have launched a social networking platform winkfame.com. Here we are trying to build the platform to Connect Future Friends, Partners and Collaborators – who do not know each other today, but have one or more common interests. We require that the parties see or meet each other (in physical space, not cyberspace) to [...]

Continue Reading »

Discussing about Pipeline Expression in MongoDB

August 19, 2014 1 Comment
Discussing about Pipeline Expression in MongoDB

In the previous article we scratched the surface of the expression in pipeline. In this article we are going to discuss it in detail. What is the pipeline expression in mongodb? As the mongodb.org states pipeline expression in mongodb is Some pipeline stages takes a pipeline expression as its operand. Pipeline expressions specify the transformation [...]

Continue Reading »

Working with Pipeline Concept in MongoDB

August 13, 2014 1 Comment
Working with Pipeline Concept in MongoDB

In the previous article we have discussed about aggregation framework. In the aggregation framework a certain concept named pipeline concept has a very important role to play. In this article we are going to discuss about that same pipeline concept in mongodb. What is pipeline concept in mongodb? In the UNIX command shell, pipeline means [...]

Continue Reading »

How to Work with Aggregation Framework in MongoDB?

August 12, 2014 0 Comments
How to Work with Aggregation Framework in MongoDB?

In the previous article we have discussed about aggregation method in mongodb. In this article we are going to discuss about aggregation framework. Mongodb ver 2.2.0 supports aggregation framework. What is aggregation framework in mongodb? The aggregation framework in mongodb calculates aggregate values without the need for complex map-reduce operations. The aggregation framework is designed [...]

Continue Reading »

Working with Aggregation in MongoDB

August 5, 2014 0 Comments
Working with Aggregation in MongoDB

In this article we will be discussing about aggregation in mongodb. What is aggregation in mongodb? As it states in mongodb.org “Aggregations are operations that process data records and return computed results.” So, in simple terms aggregation uses multiple documents together to group values. With those values aggregration can perform multiple operations and return only [...]

Continue Reading »