Skip to main content

User Login and Registration with Node.js, Express & MySQL

In our previous tutorial, we have explained about User Authentication and Authorization with Node.js. In this tutorial we will learn how to implement user registration and login functionality with Node.js, Express & MySQL.

User login and registration is an important functionality of web application to allow users to create account and login. The functionality is created for user authentication to allow users to access different resources according to user role.

So if you’re working on web application wants to create user registration and login functionality, then you’re here at the right place.

We will implement the user registration and login functionality with user authentication. We will store the user information into session for authentication purpose.

(more…)

Create REST API with Node.js, Express & MongoDB

In our previous tutorial, we have explained how to create REST API with PHP & MySQL. In this tutorial, we will explain how to create REST API with Node.js, Express and MongoDB.

REST stands for “Representational State Transfer” which determines how API will behave. It is a set of rules that developers follow while creating API. The rules are related to the operations with data to create, read, update and delete etc.

In this tutorial you will learn how to create RESTful API with Node.js, Express and MongoDB.

Express is a Node.js framework that adds support for routing, middleware, view system etc. We will also use Mongoose, an ODM (Object Document Mapping) tool to interact with the MongoDB instances.

(more…)

Chat Application with Node.js, Express & MongoDB

Chat Application are developed and used for conversation. It is a special feature and used in many websites to allow user to conversation. The conversations are run one to one or group conversation among multiple users. Generally, web chat applications are developed with server side languages and it’s always challenge to get the real time chat data.

So if you’re thinking about developing your own chat application with real time data, then it’s a very easy with Node.js. In our previous tutorial you have learned about User Authentication and Authorization with Node.js. In this tutorial you will learn how to implement Real-time Chat application with Node.js, Express and MongoDB. We will use the JavaScript framework Express.js and Node.js modules Mangoose and Socket.io to implement the full functional chat system.

(more…)