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: node.js
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: node.js
07-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: node.js
12-Jun-2015

Node.js

Adobe Behance Portfolio development API’s: node-behance-api

Behance is an online portfolios website. Here a user can create and see his/her/others portfolios. node-behance-api is an utility wrapper built on node.js for Adobe Behance rest services. This utility is developed for node.js only. Currently it supports most of the API's of Adobe Behance. You can upgrade or add other new API's via...

by Deepak Vishwakarma
Tag: node.js
24-May-2015

Node.js

Introduction To Mocha [Part-1]

  Introduction To Mocha Recently I have started learning MochaJs for unit testing of my NodeJs application. Although  http://mochajs.org/ is very well documented and refine in its own. But that is most respect to Mocha itself. I tried and created lots of example so that it can relate to NodeJs. Before starting further, Clone/download...

by Deepak Vishwakarma
Tag: node.js
23-May-2015

Node.js, Technology

PHP to Node.JS Migration – Retaining Your Cpanel E-Mail Account While DNS Migration

Hello folks, If you are here on this blog, you might be searching for the ways to migrate your existing PHP website to Node.js. In this blog i will try to explain, how you can point your existing domain to nodejs hosting and keep using the cpanel hosting for managing emails for your domain. To start with, you will have to make...

by shahab@intelligrape.com
Tag: node.js
22-Mar-2015

Technology

Free text search in MongoDb

MongoDb introduced free text search beta in its v2.4 but it was in experimental phase. In v.2.6, MongoDb has finally made its free text search (the most requested feature) production ready. In this post, we will have a look at how can we use this pretty useful feature that MongoDb offers us. To enable Free text search, Mongodb...

by Sakshi Tyagi
Tag: node.js
30-Jun-2014

Node.js

Generate PDF in NodeJS using “node-phantom” module

PhantomJS is used to emulate browsers through command line, for generating PDFs, web page manipulation, headless testing and much more interesting stuff. Npm provides us a module called "node-phantom" which helps us to use PhantomJS in our NodeJS application in a non-fussy way. A prerequisite for using this module is, you must have...

by Sakshi Tyagi
Tag: node.js
27-Jun-2014

Node.js

Defining custom errors – NodeJS

Any well written piece of code should be defensive by nature with defensive error handling understanding that things could go wrong. Things would be great if we can define our own custom error classes which we can pass or throw in order to distinguish various errors. Custom error constructors helps in: ⇒   Identifying...

by Kushal Likhi
Tag: node.js
23-Jun-2014

Node.js

Getting started with Mongoose !!

Mongoose is a Node.js package that gives you an interface to play with mongo database. Mongoose has all sets of methods that help you to connect and access data stored in database. It translates data from database in javaScript object which you can provide to your application. We will move step by step to know how it works. 1....

by ajay.mishra
Tag: node.js
07-Apr-2014

Grails

jQuery dataTables plugin for pagination of HTML tables

In my project on Angular.js I came across a use case where I needed to paginate the HTML tables . DataTable jQuery plugin is a perfect choice in order to accomplish this task. Let us take a simple example to illustrate the use of dataTable plugin: [js] <html> <head> <style> <link rel="stylesheet"...

by pulkit
Tag: node.js
25-Mar-2014

Technology

Layouts in Dust.js

For building an application with user friendly and consistent UI, we generally use the concept of "master page" and "layouts", so that just the content can vary within the pages. This helps user to easily navigate through the website as well as faster loading of the web pages. For example, generally we make header and footer static...

by Sakshi Tyagi
Tag: node.js
12-Mar-2014