Express JS

Specify Static Folder in Express JS

Static folder is used for keeping all the static files like css files, images etc. In express JS we mention the static folder in... Read more »

Weather App JS Project – Full Code

Weather App project is a simple project for using weather API. This app is build using Express JS for learning beginners exploring APIs. This... Read more »

How to send multiple lines of HTML in res.send – Javascript

We can send multiple lines of HTML through the res.send the response in node js. This can be done by using the res.write() Eg:... Read more »

Weather API – Node JS Sample API Project

In this project, we gonna create a weather updates webpage using Node & Express JS. We are using the weather API provided by OpenWeather.... Read more »
post_thumb

How to handle POST request in Express JS

POST request can be received to the server and response can be given to that using express js. eg: app.post("/", function(req, res){ res.send("Thanks for... Read more »

Route incoming request to an HTML file in Express JS

In this tutorial we gonna check how we can direct our incoming request to an html file. So here we gonna use express js's... Read more »
form_data_thumb

Handling Form Data POST request in Express

How to get form data using express js. POST form data and receive at the backend. Install bodyParser npm i body-parser For parsing the... Read more »
root_express_thumb

How to get root directory path using Express JS Code

How to print or get the root project folder path while coding in express JS. The root folder is the main project folder where... Read more »
nodemon_thumb

nodemon – Utility for autoRestart Node Server on Code Changes

Nodemon is one of the most useful node packages that save a lot of time during code changes. Normally every time we make changes... Read more »
routes_express_thumb

Routes in Express JS Examples

Express routes helps to route incoming request to specific pages. There will be request and response parameters. Below you can find a sample code... Read more »