Category: Node JS

Node.js download PDF file from REST Api

I want to download pdf file from the server with REST API. This is has to be done inside my node.js application This can be done easily with axios . First you have to send the get request to server with responseType: “stream” If you need to do authentication you can pass the acessToken with following […]

Read more

Express – Node.js web application framework – Get started

In this lesson we will study how to install Express web application framework on Node.js and study the basic routing How to install the Express

You can have the following code in server.js

Now you can start the server

Now you can test url http://localhost:3000 in your browser Really simple to install […]

Read more

Simple Node.js HTTP Server

In this lesson, you will be able to understand how you can use node.js to develop your simple HTTP server Node.js comes with http/https modules which can be used to develop the HTTP server So to create Node.js HTTP server you require HTTP module and then you create the server from that module and finally […]

Read more