| by Gagandeep Singh | No comments

Understanding Middleware in ExpressJS

Thing missing in NodeJS NodeJS is used for writing JavaScript which executes at the server. At client side browser is responsible for handling the JavaScript. So, whenever we use pure NodeJS for creating backend applications our app contain a single function for each incoming request which is responsible for doing all the processing based on […]

Read More
| by Gagandeep Singh | No comments

Don’t need to restart your Node server again and again?

While doing development on any NodeJS application, whenever we make any change to some file we need to restart our Node server from the command prompt/terminal. This is a repetitive process since we make hundred of changes and restart server every time to check the change. Solution to this issue is using a tool called […]

Read More
| by Gagandeep Singh | No comments

ExpressJS installation and basic routing

Before beginning with ExpressJS make sure you have nodejs installed on you machine. What is ExpressJS? ExpressJS is a NodeJS framework for creating server side applications. ExpressJS provides many shorthand methods for writing the functionality provided by NodeJS. Installing ExpressJS Step 1 : Goto your application directory Step 2 : Initialize your node project (create […]

Read More
| by Gagandeep Singh | No comments

Deploy a node application on the Heroku server

Before we begin deploying our app on the Heroku server make sure that you have a registered Heroku account, if not then click here to register. NOTE: You must have node and git installed on your system before we can deploy our app. In the previous post we created a server.js file to display “hello […]

Read More
| by Gagandeep Singh | No comments

Create an HTTP Server in NodeJS

In our previous node example we simply printed “hello world” on our console using node command. In this post we will see how we can create an http server using nodejs and send a response from the server to the browser to print a text. Step 1: Let us create a server.js file on our […]

Read More
  • 1
  • 2