Node.js, Technology

Custom matcher for testing with Jasmine

Jasmine is a behavior-driven development framework for testing JavaScript code. Many Jasmine users only use the default set of matchers which are extremely powerful, yet are unable to meet our requirements when dealing with complicated or custom code. Jasmine provides a wide list of built-in matchers: Arrays: [javascript] ...

by Mohit Tyagi
Tag: javascript
08-Jul-2015

AngularJS, Node.js

NodeSchool – Delhi NCR, 2015

And we returned with yet another successful NodeSchool event which was bigger than the last one. NodeSchool-Delhi NCR was conducted on July 4, 2015 at TO THE NEW Digital office. This community event basically got its inspiration from NodeSchool - an open source project run by people in order to enable others to organize more community...

by Sakshi Tyagi
Tag: javascript
07-Jul-2015

AngularJS, Front End Development

Manually Bootstrapping an AngularJS Application

We always need some mechanism to control our front-end application at the time when we bootstrap it. Getting some customization done before kicking in the angular on the front end, can be a desired use case for some of the Angular Applications. It is mainly needed when we have to redirect to an Angular application from some other social...

by Vibhor Kukreja
Tag: javascript
02-Jul-2015

AngularJS, Front End Development

Lets know more about angular module

Modularizing your application is a good practice because it makes the components reusable, configurable and testable. As we know that angular is on the global scope itself whereas angular.module is a global place to create, register or retrieve angular modules. In other words,  angular.module is a container for other units of your...

by Sandeep Kumar
Tag: javascript
02-Jul-2015

Node.js

Sending iCal invite using Node Js

Sending event invites through an email is a common use case nowadays in applications. In this blog, we will briefly cover the steps to accomplish this using Node.js. Node.js provide various npm modules for sending iCal invite. We have customized one of the modules and used it according to our use case. You can find the module here . ...

by Sakshi Tyagi
Tag: javascript
12-Jun-2015

AngularJS, Front End Development

Angular’s $resource for CRUD Operations

$resouce is a perfect option to create a single page application which involve CRUD operations.You don't write your CRUD methods (create,read,update and delete) when you use it. A RESTful web service with one endpoint for a data type that does different things with that data type based on HTTP methods like GET, POST, PUT, DELETE,...

by Rubi Saini
Tag: javascript
30-May-2015

Grails

Adding interactive charts to web pages using Highcharts

I recently had to add charts to a web page in my project. I used Highcharts library for this. It is very dynamic allowing you to change graphs even after the chart has been drawn. To display a graph we need a div with an ID. Let's say we have div with ID "chartDivId" and we want to display two lines in the chart. We can use the...

by Aseem Bansal
Tag: javascript
26-May-2015

Automation Testing

Connect to PostgreSQL using JavaScript

One of the best practices of Automation testing is to leave the system from the state where you started your test from. While doing functional testing for an angularjs application using Protractor and Cucumber (BDD framework), there was a need to clean up whatever data was being generated in the Data setup (generally the Given) of the...

by Anuj Verma
Tag: javascript
20-May-2015

Node.js

Configurable Service in AngularJS

Angular provide services for handling non-view logic, communication with server(back-end) and can holds data & state. These services are singleton objects that can be used to share and organize code. For doing so, angular provides us five cool ways to make a service on the bases of once need. Following are the five approaches that...

by Vibhor Kukreja
Tag: javascript
30-Mar-2015

Node.js

Handlebars : A step ahead

In the previous blog on Handlebars, we learnt the basic concept of handlebars and how to use them in your web applications. Now we will extend our knowledge, a bit more and see how we can use and create helper methods in handlebars to have more flexibility on data. Predefined/Built-in Helper methods: There are a number of built in...

by Rishabh Dixit
Tag: javascript
18-Mar-2015

Grails

Vertical Labels with Google Chart API

While working with Google charts, we usually face issues with long labels on the horizontal axis. The chart displays well, however the X-axis labels are not completely visible and displays the numbers like this: 24/3.. 25/3.. 26/3.. 27/3.. 28/3.. 30/3.. 31/3.. instead of 24/3/2006, 25/3/2006, 6/3/2006, 27/3/2006, 28/3/2006,...

by Mansi Arora
Tag: javascript
20-Feb-2015

Node.js

Form Validations using AngularJs

There are lots of ways to validate a web page like HTML5 validations, but why not do it in a better interactive way by using AngularJS. AngularJS provides us with several form properties for validation, which helps in providing instant feedback in case validation is violated.     $valid: return true when input field is valid.  ...

by Sandeep Kumar
Tag: javascript
19-Feb-2015