Category: Node.js

Node.js is a powerful JavaScript runtime environment

Node.js with File Handling – write / read 0

Node.js with File Handling – write / read

The Node.js API is a server-side programming technology. Hence, a Node.js application may be required to interact with the physical file system of the server. The Node.js API includes fs module that enables the...

Node.js with Postgres DB and table row 0

Node.js with Postgres DB and table row

Here’s how to create a table named Employee, insert three records, and connect to your mydb database in PostgreSQL using Node.js Terminal Commands and logs

Node.js with Postgres database connectivity 0

Node.js with Postgres database connectivity

It is connecting to a PostgreSQL database using the pg module in Node.js. This version creates a database if it doesn’t exist and lists all available databases. You need to install pg or mysql...

Node.js Files Upload using Multer package 0

Node.js Files Upload using Multer package

Another useful NPM module that is capable of handling file uploads is called Multer. Users can upload either single or multiple files at a time. To install, use the following command npm install multer...

Node.js Files Upload using Formidable package 0

Node.js Files Upload using Formidable package

Generally, In web applications, users from client machine is required to upload file (such as the user uploading images and videos with Facebook , Instagram apps etc.) to the server. There are a number...

First Node.js Application 0

First Node.js Application

To create a basic Hello World first application in Node.js, save the following single line JavaScript as hello.js file. console.log(“Hello James Bond!”); Open a PowerShell (or command prompt) terminal in the folder in which...

nodejs-setup.png 0

How to Install Node.js?

Steps vary as per operating systems to install Node.js, please follow the methods as per installed operating system. Local Environment Setup If you are still willing to set up your environment for Node.js, this...

0

What is Node.js?

Node.js is an open-source, cross-platform JavaScript runtime environment designed for building scalable, high-performance network applications. It uses the V8 JavaScript engine (developed by Google) to execute JavaScript code on the server side, outside of...