Node.js »

[25 Jul 2017 | No Comment]

This article shows how you can create a basic HTTP routing in Node.js.
In the example code, we will be using two built-in Node.js modules: http module and fs module. To create HTTP server, we need http module. And, to read/write file data, we need to use fs module.
We will create an http server and write if/else conditions to read HTML files according to routing parameter.

Node.js »

[20 Jul 2017 | No Comment]

Node.js is an open-source runtime environment, used to build server-side and networking application using Javascript. Generally, Javascript has been used for client-side scripting. However, with Node.js, you can interact with web-server using Javascript. The APIs of Node.js are asynchronous and event-driven which helps in faster code execution.
Here’s the installation instruction for Node.js.

AngularJS »

[17 Jul 2017 | No Comment]

This article shows how you can use routing in AngularJS 1.x and create Single Page Application (SPA).
For routing feature, we need to include angular-route Javascript file and use ngRoute dependency in our AngularJS module. ngRoute module provides the $routeProvider API which has when and otherwise functions used for routing.

AngularJS »

[13 Jul 2017 | No Comment]

This article shows how you can search and sort data using AngularJS 1.x.
We will be using code from previous article example. Our code contains country & their capitals name as an array and we display them using ng-repeat directive in HTML view.
This is our example code from previous article:

AngularJS »

[10 Jul 2017 | No Comment]

This article shows an example on how you can fetch JSON data from external file.
First, let’s create an example of inline JSON data inside the controller.
In the below code, in countryController, we have countries array containing country and capital name. In the HTML view, we have used ng-repeat directive to loop through the countries array and print the country name and capital name.

AngularJS »

[6 Jul 2017 | No Comment]

This article shows how you can work with Dependency Injection (DI) in AngularJS 1.x application. It’s just about passing dependencies to AngularJS controller. Rest of the work on injecting dependencies is taken care by AngularJS.
Dependency Injection (DI) is basically about passing a dependency object to another dependent object that uses it as a service. A service is provided to the client as a dependency object. So that, the client does not have to create the service by itself.

AngularJS »

[3 Jul 2017 | No Comment]

This article presents a basic introduction to AngularJS 1.x. AngularJS is a free and open source Javascript Framework. It’s a frontend web application framework maintained by Google.
AngularJS follows the MVC (Model View Controller) approach of coding. Two way data-binding is a prominent feature of AngularJS which automatically synchronizes data between model and view components. This allows automatic updates in model whenever view changes and vice-versa. There are other great features like Dependency Injection, Services, Filters, Directives, etc.

Database, MongoDB »

[27 Jun 2017 | No Comment]

MongoDB is an open-source document database. Document in MongoDB means a row or record in the database. A document contains data in key-value pairs. MongoDB is popular for it’s high performance, scalability and availability.
This article shows how to perform simple select, insert, update, delete database operations in MongoDB. That’s also referred as CRUD (Create, Read, Update, Delete) operation. We will be performing these operations through terminal/command-prompt using MongoDB shell.

R »

[20 Jun 2017 | No Comment]

This article shows how we can predict future data with Linear Regression using R programming language.
Regression Analysis builds a relationship model between two variables.