Add Any Domain Name in your localhost

In this blog, we are going to discuss how to add any domain name in your localhost on a windows machine. We require this type of setup especially when developing/running multiple applications, and also to handle CROS effectively during application development. Step 1 : Open C:\Windows\System32\drivers\etc\hosts in your editor Step...Read more

Working With Sequelize

About Sequelize It is a promise-based NodeJS ORM for connecting with various databases like SQLite, MySQL, Postgre, etc. In this blog post we will focus on models and seeders only. npm i sequelize About Sequelize CLI It is a command line tool for generating files, seeding records in database, etc. npm...Read more

Form Field Validation in NodeJS using Middleware

In this blog we are going to discuss about the form field validation in NodeJS using express middleware. Why to use middleware ? There are several ways to validate the form fields in NodeJS but middleware is also on the best, simple and effective way to validate the form fields....Read more

Integration Testing with NodeJS

We are going to Test the Route life cycle in NodeJS using mocha. If you want to know how to test NodeJS application when a particular route is requested using the browser / API calls then you can continue with this post. This post will give you a basic idea...Read more

Environment Variables Do’s and Don’t

What are Environment Variables ? These are the variables that play an important role in the configuration of any application/program. They are just like normal variables, a key-value pair. Also, they contain critical pieces of information. So Why to use Environment Variables ? As said earlier, they help in configuration,...Read more

JSON Web Tokens with Asymmetric Keys

JSON Web Tokens offer a simple and powerful way to generate tokens for APIs which can be consumed during communication from frontend applications, mobile devices, IOT devices or even from other server communication i.e server to server communication. These tokens carry a payload that is cryptographically signed. While the payload...Read more

Sequelize NodeJS CRUD

We are going to discuss CRUD operations namely create, read, update, and delete on a database resource in NodeJS application. Node.js is an open-sourced, free, cross-platform JavaScript run-time environment for server-side scripting.  Application Environment ? We are using the express framework in NodeJS. Along with we are using sequelize to...Read more