Subscribe via RSS Feed

Javascript Framework

What is Angular Service Factory? Why and Where should we use it?

August 6, 2015 0 Comments
What is Angular Service Factory? Why and Where should we use it?

In our previous article we have discussed about Angular service. We have created service using .service() method. In this article we will discuss about angular service factory. So, first things first, we need to know what is factory in Angular. We can create our own services by registering the service factory function. The service factory […]

Continue Reading »

What is Angular Service? Why and where should we use it?

August 5, 2015 0 Comments
What is Angular Service? Why and where should we use it?

By definition services in AngularJS are Javascript functions that are responsible to do only specific tasks. Services can be used to organize and share code across an application. Here sharing refers to sharing of data and functions. It keeps data across the lifetime of an Angular app. Controller communication can be done using services in […]

Continue Reading »

What is Angular Controller? Why and where should we use it ?

August 4, 2015 2 Comments
What is Angular Controller? Why and where should we use it ?

In MVC format application a controller is responsible for interacting between model and view. It facilitates to chage the state of the model. The main business operations in an MVC application is written inside a controller. In Angular, a Controller is a JavaScript constructor function that is used to augment the Angular Scope. It is […]

Continue Reading »

What is Angular router? Why and where should we use it?

August 3, 2015 0 Comments
What is Angular router? Why and where should we use it?

Routing helps us to divide our application in parts logically, making it more manageable. Whenever an app grows by adding logic into it it becomes hard to control and manage. Using routing we can easily divide our application in logical views. Routing also helps to bind different views to the controllers. The above picture shows […]

Continue Reading »

Handling AngularJs and CSS3

July 31, 2015 0 Comments
Handling AngularJs and CSS3

We know how CSS helps a web page to boost up and beautify its appearence. Thinking of a attractive UI without CSS is impossible. On the other hand we know we can make rich data bound applications with AngularJS. Now what if we can use and handle css through AngularJS? This is what we are […]

Continue Reading »

How do we use $scope.$apply() in Angular 1.4

July 24, 2015 0 Comments
How do we use $scope.$apply() in Angular 1.4

$apply() is a core aspect of AngularJS. This is sometimes confusing to understand. This article describes what is $apply() and how do we use $scope.apply() in Angular 1.4. First things first, we will learn what is $apply(). We know there is an awesome feature called data binding in AngularJS which tells that whenever a model […]

Continue Reading »

Bind, Call and Apply in JavaScript

July 2, 2015 0 Comments
Bind, Call and Apply in JavaScript

Functions in JavaScript are object. As objects functions have several methods. Some of them are powerful like Bind, Call, Apply etc. In this article we will discuss about these three methods in detail. In brief, Bind is used to set this value in methods and currying functions. On the other hand Call and Apply are […]

Continue Reading »

AngularJS Features and How It works with MVVM

June 26, 2015 0 Comments
AngularJS Features and How It works with MVVM

AngularJS is a powerful JavaScript framework to create rich web application. It provides options to write client side application in Model View Controller format. Application written in AngularJS is cross-browser compliant. It has capability to create Single Page Application in a very clean way and also provides reusable components. It is open source framework and […]

Continue Reading »

Javascript Basic Functionalities like classes and how we take it forward in Angular.js

June 22, 2015 0 Comments
Javascript Basic Functionalities like classes and how we take it forward in Angular.js

This article describes about JavaScript basic functionalities like classes and how we take it forward in Angular.js.Class can create objects which can have properties and methods. We can facilitate program by instantiating the classes(objects) and using them in a proper way i.e. making use of it’s methods and properties. It increases the code re-usability. In […]

Continue Reading »

What is a Single Page Application and How we can make it with Javascript framework like AngularJS

June 17, 2015 0 Comments
What is a Single Page Application and How we can make it with Javascript framework like AngularJS

Single Page Application or SPA is a web application that fits on a single webpage. This article is a proof of concept about What is a Single Page Application and How we can make it with JavaScript framework like AngularJS. Features and advantages of single page applications are Once the site is loaded then it […]

Continue Reading »

Basic Introduction to React.js

May 11, 2015 0 Comments
Basic Introduction to React.js

The aim of this article is to make a basic introduction to react.js. Today React.js is gaining much more popularity in Front-end Web Developer world. As we understand, React.js is a front-end developement framework, created and maintained by facebook for their production application. The framework focuses on UI and expect to handle the backend by WEB […]

Continue Reading »

Single page Application with Angularjs, Minimalweb Node MVC and MongoDB

February 24, 2015 2 Comments
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 »

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 »

Configuring Load Balancer with Nginx and Node.js

January 3, 2015 3 Comments
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 1

December 29, 2014 9 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 »