Category: Express JS
Express JS
Express JS is a popular web development and application development framework of Node JS. Express JS is light weight and easy to program backend of web app.
Node Express sessions are required to maintain access control for different users of applications. Node Express sessions help the system to identify either the user is authenticated or not and he should be given access or not. Whenever a request is made from the client-side
Cookies (cookie-parser) in Node Express Middleware
Cookie is data which is stored on client’s side which is mostly a browser. Cookies are sent by server request. Whenever a website is loaded, cookies are sent to client side and stored in browser. These are useful in tracking actions of visitor. Cookies are very useful to
Create & Process Form with Login example in Express JS
To perform CRUD functions on any website, forms are used. These are most important and widely used as an integral part a website. Forms are used to add, update, remove and delete data. For example, when a user tries to login to any website, he provides his username and
Static Files in Express JS
Express JS does not allow to serve static files likes images, videos etc. Static files are downloaded by clients from server. However, if we have to serve static files, we will have to enable middleware dedicated for this purpose. To do this, first of all we will create a
Frontend Templating (Pug Engine) in Express JS
Express is written in JavaScript and JS supports multiple templating engines like Mustache, Handlebars, doT, EJS, Nunjucks, Underscore, Pug, ECT, Template7, jTemplates and some others. However, in this tutorial, we will be using Pug templating engine for making frontend of
Express Middleware No.1 Easy Tutorial
Express Middleware comes between request and response. When a request is made, it is received by the server where middleware performs its tasks on the received request and then route handler sends the response which again passes through middleware functions and in the end
Express Router: No. 1 Easy static & dynamic routing tutorial
Express router helps in defining URL for web applications and APIs. It makes easier to create SEO friendly URLs. What is express router? When we are dealing with complex applications which needs a big list of routes, it becomes difficult to handle everything in single
HTTP Requests in Express JS
HTTP requests are binary information packets that a computer or client sends to another computer or server to communicate. What is routing in Express JS? Routing is basically defined as the process of selecting a path for traffic or request in a network or in a web
Hello World 1st Best Example for working of Express JS
Hello World Example in Express JS In our package.json file, we have specified main index.js. So, to start developing our hello world in Express JS, create file index.js and type the following code. In the above code, lines starting with // mentions comments for each line of