Home » JavaScript » Node.js (page 5)

Node.js

Creating a hash in Node.js

Introduction We require hashes everywhere, like setting the password in database as hash instead of plain text password, to check whether if file is tampered or not during transmission or checking integrity of file or messages transferred over network, etc. This small article will give detailed look at creating hash from Node.js core crypto module and later in the article, it shows how ...

Read More »

Scheduling jobs on Node.js with node-schedule

Batching is a great part of todays software development. The business world runs on batch from bank statements to promotion emails. Node.js has some good libraries for such cases. Node Schedule is a light cron like scheduler for node. npm install node-schedule In case your are used to cron and the cron expression format, it will be pretty easy for ...

Read More »

Seriate: The Glue Between SQL Server and Node.js

An example Node.js application which connects to a SQL server and serves up data via HTTP endpoints. Before leaving my last client, I was asked if it was possible for Node.js to connect to Microsoft’s SQL Server. The reasoning behind this was that the company wanted to move away from a pure Microsoft stack because of the cost and try ...

Read More »

Automate your front-end development environment with npm

For JavaScript development, there are more build tools than you know what to do with. The non-verbal utterance category contains the two most popular ones, Grunt, and Gulp. Then you have your food-related tools, like Brunch, Mimosa and Broccoli. You’ve got fancy new hot stuff like fly. Then there’s classic make-like tools like Cake, Jake and ShellJS’s make. Some folks just ...

Read More »

Creating a NodeJS Web Server to Run angular-seed

The angular-seed project on GitHub is a great way to start playing with AngularJS. It allows you to get an AngularJS single-page web app up and running very quickly. If you want to run your web app with NodeJS then you will need to create a basic Node server. I will attempt to explain how to create a Node server configuration using some common Express framework components. ...

Read More »

A Gentle Introduction to Node.js

Recently at work, I sought to familiarize myself with Node.js. Naturally, I started searching the pool of applications in Keyhole’s GitHub repository. This was the first time I was using Node.js and the instructions in the application readme file to run the application locally was thoroughly detailed. However, I ran into some very basic questions trying to run the application ...

Read More »

Understanding Garbage Collection and Memory in Node.js

Whenever there is bad press coverage of Node.js, it is (typically) related to performance problems. This does not mean that Node.js is more prone to problems than other technologies — the user must simply be aware of certain things about how Node.js works. While this technology has a rather flat learning curve, the machinery that keeps Node.js ticking is quite ...

Read More »

Async for Node.js

Async module for node.js saves the day when it comes to synchronizing asynchronous tasks, or executing them in a serial manner. To execute tasks in order, you can use the series method. var async = require('async'); var somethingAsynchronous = function(callback) { console.log('Called something asynchronous'); callback(); }; var somethingElseAsynchronous = function(callback) { console.log('called something else asynchronous'); callback() }; async.series([ function(callback) { ...

Read More »

My journey @ Node Interactive in Portland

1. Introduction Where I live, in Quebec City, JavaScript is not glittering much. We’re a small city and most of our IT projects are for the government, and here, it’s Microsoft. So I went to Portland in the US at the Node Interactive and this article is a summary of the sessions I attended. Note that if you are interested ...

Read More »