Archive

Chat application using Node.js

Some point in time, while using social platforms we think how this chat window works. It is pretty simple. Here is sample demo application which will show how the chat window works in Node.js. We will be using the socket.io module for communication between chat windows. You can read about the ‘socket.io’ from https://socket.io/ .   Node.js: It should be installed. Express js: As it is a web application we will require the express module. if you want to read…

0
Read More

How to execute jar file using node js child_process

Many of the situation we need to interact with the other programs. Here is a small demo on how to invoke or execute the jar. In Node js, the “child_process” is the module which will do the needful. Through chlid_process, we can execute OS command. Here have used one java program which takes input from the command line and prints the value which is in command line execution. Below is the java program we have used. We will create an…

2
Read More
mysql-db

Insert multiple/bulk records into mysql DB using node.js

Some cases we get requirements for bulk data insertion to MySQL database. It is a simple process. In this tutorial, we will learn about how to handle multiple rows or arrays of data insertion. Below are the steps to guide archive the target.   Node Js: It should be installed in your system. Below are the processes to set up the project, 1. Create project folder(here it is “mysql-bulkinsert-opration”) 2. Navigate to the folder using the command line (cmd)

4
Read More
log-error

Design custom logger for node js appilication

When designing a web application, we require some information need to be captured. It may be for future reference and analysis to find the root cause of some issue. Designing the Logging module intelligently will help these activities in future. Here we will talk about simple custom logging technique, which you can use and customize as per your requirement of logging. Node Js: It should be installed in your system. express-generator: You need to install express-generator, this will help you…

0
Read More