Express tutorials

RESTful API Using Node.js and Express.js

REST stands for REpresentational State Transfer. REST is a web standards-based architecture and uses HTTP Protocol. REST services address components as resources and are accessed by a common interface using HTTP standard methods. RESTful is the web service implementation of REST software architecture. In this tutorial, I am going to explain how to build RESTful …

RESTful API Using Node.js and Express.js Read More »

Render HTML file in Node.js and Express.js framework

ExpressJS is a popular NodeJS web framework. ExpressJS allows you to develop a custom web server according to your project requirement. The express project can be extended by installing various node modules. However, you don’t need to install multiple packages to handle HTML files and to render them in the response. In this short tutorial, …

Render HTML file in Node.js and Express.js framework Read More »

File uploads using Node.js

File upload in node.js seems tedious due to its async nature and network programming approach. However, it is one of the easiest file upload mechanisms I have seen yet. LIVE DEMO DOWNLOAD How to perform file upload? I am going to use express framework and middleware called “multer”. This middleware is designed for handling the multipart/form-data. In …

File uploads using Node.js Read More »

Nodejs Authentication Using JWT and Refresh Token

Nodejs authentication using JWT a.k.a JSON web token is very useful when you are developing a cross-device authentication mechanism. Here is how token-based authentication works: User logins to the system and upon successful authentication, the user are assigned a token which is unique and bounded by time limit say 15 minutes On every subsequent API …

Nodejs Authentication Using JWT and Refresh Token Read More »

HTML5 Push Notification System Using Nodejs MySQL Socket.io

Real-time web/mobile application is becoming popular day by day. Services like Firebase and Pusher provides API’s and Services to develop effective real-time notification system for your mobile and web apps. We are not going to use these Services in this post; instead, we will develop an application that pops up a notification on a particular …

HTML5 Push Notification System Using Nodejs MySQL Socket.io Read More »

Node.js and Express Tutorial for Beginners

This tutorial is for Node.js and Express Beginners. Express is a node.js web development framework which comes with various features you require to build end-to-end web application such as routing, parsing, render engine support, etc. In this Node.js tutorial for beginners, we are going to cover the following topics: Node.js Basic Concepts Installing Node.js in …

Node.js and Express Tutorial for Beginners Read More »