
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 266 Articles for Node.js

519 Views
The mostly used core modules of Node.js are −http − used to launch a simple server, send requestshttps − used to launch a ssl secured http serverpath − used to handle path based on operating systemfs − It’s a file system handling moduleos − its used for os related operationsLets build a simple http server using Node.js −Create a javascript file App.js (name it as you like) in an editor like visual studio code .App.jsconst http = require(‘http’); function reqListener(req, res){ console.log(‘Hello’); } const server = http.createServer(reqListener); server.listen(3000);ExplainationWe used const keyword instead of var or let to import a ... Read More

2K+ Views
Grunt (The JavaScript assignment Runner) is an automation tool to perform repetitive duties like compilation, unit testing etc. Grunt and Grunt plugins are hooked up and managed through NPM, the Node.Js package manager. This article explains about – How to install Grunt on Ubuntu.To install grunt on ubuntu, it should require pre-installed Node.js and NPM. To verify the version of Node.js, use the following command –$ node --versionThe sample output should be like this –v6.9.2To verify the version of NPM, use the following command –$ npm --versionThe sample output should be like this –3.10.9If you wants to install Node.js and ... Read More

43K+ Views
The WebSocket is a protocol which provides a way of creating web applications that supports real-time bi-directional communication between both clients and servers. WebSocket makes it much easier to develop these types of applications. Most modern browsers support WebSocket including Firefox, Internet Explorer, Chrome, Safari, and Opera, and more and more server application frameworks are now supporting WebSocket as well.For a production environment, where multiple WebSocket servers are needed for getting a good performance and high availability of the website or application, a load balancing layer which understands the WebSocket protocol is required, NGINX supports the use of WebSocket from ... Read More

302 Views
Are you really hunting for web-based notepad to collaborate with your team?. Etherpad is a web-based open-supply file editor which makes it possible for you to collaborate on a file in actual-time. Using Etherpad, a bunch of users can edit a textual content record. This article explains about -“How to install Etherpad Lite on Ubuntu”.To install Etherpad Lite on Ubuntu, it should require Node.js and NPM, To install Node.js and NPM read this article –Install Node.js on LinuxTo install supported Python libraries for Etherpad, use the following command –$ sudo apt-get install gzip curl python libssl-dev pkg-config build-essential gitThe sample ... Read More

1K+ Views
The demand for different programming languages is constantly shifting due to the creation of new mobile and online applications. Additionally, emerging programming languages provide useful capabilities for the construction of powerful websites. A study done by developers at 2020 shows that JavaScript is widely considered to be one of the most popular technologies.Both NodeJS and AngularJS are open-source technologies that are based on JavaScript and are in wide use. AngularJS is a framework written in JavaScript, while NodeJS is a runtime environment that works across several platforms.Angular is a client-side JavaScript framework that allows developers to construct dynamic web applications ... Read More

436 Views
You can insert data into HANA database using node.js. You can also connect to SAP HANA database via JDBC driver.To connect via JDBC, you need to install JDBC driver ngdbc.jar. This driver is installed as part of SAP HANA client installation. Ngdbc.jar file is available at this location −C:\Program Files\sap\hdbclient\ on Windows platforms /usr/sap/hdbclient/ on Linux and UNIX platformsNext is to add ngdb.jar to the classpath and write a Java program to connect to a database and execute SQL command.jdbc:sap://myServer:30015/?autocommit=falseYou can also add one or more failover servers by adding additional hosts.ExampleFollowing is an example of connecting SAP HANA Server ... Read More