Category : Node.js

25 posts

Express.js GET Request GET and POST both are two common HTTP requests used for building REST API’s. GET requests are used to send only limited amount of data because data is sent into header while POST requests are used to send large amount of data because data is sent in the body. Express.js facilitates you …
Express.js Request Object Express.js Request and Response objects are the parameters of the callback function which is used in Express applications. The express.js request object represents the HTTP request and has properties for the request query string, parameters, body, HTTP headers, and so on. Syntax:  app.get(‘/’, function (req, res) {    // — }) Express.js Request Object Properties The following table …
Express.js tutorial provides basic and advanced concepts of Express.js. Our Express.js tutorial is designed for beginners and professionals both. Express.js is a web framework for Node.js. It is a fast, robust and asynchronous in nature. Our Express.js tutorial includes all topics of Express.js such as Express.js installation on windows and linux, request object, response object, …
What is Node JS? Node.js is a cross-platform runtime library and environment for running JavaScript applications outside the browser. This is a free and open source tool used for creating server-side JS applications. Node.js applications are written in JavaScript. This application can runs within the Node.js runtime on Linux and Microsoft Windows. This framework offers …
Node.js MongoDB Mostly all modern-day web applications have some sort of data storage system at the backend. For example, if you take the case of a web shopping application, data such as the price of an item would be stored in the database. The Node js framework can work with databases with both relational (such …
What are Routes? Routing determine the way in which an application responds to a client request to a particular endpoint. For example, a client can make a GET, POST, PUT or DELETE http request for various URL such as the ones shown below; http://localhost:3000/Books http://localhost:3000/Students In the above example, If a GET request is made …
Express.js is a Node js web application server framework, which is specifically designed for building single-page, multi-page, and hybrid web applications. It has become the standard server framework for node.js. Express is the backend part of something known as the MEAN stack. The MEAN is a free and open-source JavaScript software stack for building dynamic web sites …
Send an Email Via Node.js – The Nodemailer Module The Nodemailer module makes it easy to send emails from your computer. The Nodemailer module can be downloaded and installed using npm: C:\Users\Your Name>npm install nodemailer After you have downloaded the Nodemailer module, you can include the module in any application: var nodemailer = require(‘nodemailer’); Send an …
Synchronous vs Asynchronous Every method in the fs module has synchronous as well as asynchronous forms. Asynchronous methods take the last parameter as the completion function callback and the first parameter of the callback function as error. It is better to use an asynchronous method instead of a synchronous method, as the former never blocks …
Node implements File I/O using simple wrappers around standard POSIX functions. The Node File System (fs) module can be imported using the following syntax − var fs = require("fs") Synchronous vs Asynchronous Every method in the fs module has synchronous as well as asynchronous forms. Asynchronous methods take the last parameter as the completion function …
PAGE TOP
error

Enjoy this blog? Please spread the word :)

RSS
Follow by Email