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] ...
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...
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 . ...
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...
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...
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...
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...
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...
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...
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....
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"...
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...