Redis as primary database in nodejs
As a developer working on a project, there are a lot of options to choose from when it comes to databases. Without a second thought, the most popular and widely used types would be Relational(SQL) and NoSQL. But still, sometimes neither SQL nor NoSQL meets our exact requirements. In that case, we may need to […]
Rest API input validation in nodejs
Most of the time when we are developing a Rest API it’s often a requirement to accept user inputs in the form of a request body. To ensure that our API works as intended the input data must conform to a specific predefined format. Sometimes the erroneous inputs provided by our users are unintentional while […]
File upload drag and drop
In this tutorial, we will be implementing file upload via drag and drop in our frontend using the FilePond library. For those unfamiliar with FilePond, it is a JavaScript library that brings silky smooth drag n’ drop functionality to our frontend without having to deal with all the complexities. So let’s get started, shall we? Before […]
Nodejs MySQL with Sequelize
In this tutorial, we will be looking at how easily we can perform CRUD operations in nodejs using Sequelize in databases like Postgres, MySQL, MariaDB, SQLite, DB2, and Microsoft SQL Server. In this case, we will be using MySQL as a database. Before we start coding let’s firstly understand what we are going to build. […]
Use stripe subscription in nodejs application
In this tutorial, we will be looking at how we can implement a basic Stripe subscription in a nodejs application. Stripe, as most of us, are already aware it is a popular payment processing service for e-commerce websites and applications, and today we will be utilizing it to build a basic app that will allow […]
Docker compose nodejs app
In this tutorial, we will be looking at how we can use docker-compose to deploy a nodejs MongoDB app. Now, for those who aren’t familiar with Docker, it is an open platform for developing, shipping, and running applications. In simple words, it enables us to separate our applications from our infrastructure so that we can […]
Nodejs API best practices
In this tutorial, we will be looking at some of the nodejs API best practices that we should be keeping in mind while building our Nodejs REST API. Our main focus in this post will be to make our API secure, scalable, and optimized. So let’s get started, shall we? Handle errors gracefully One of […]
JWT authentication in nodejs with example
In this tutorial, we will be looking at how to add JWT authentication in a nodejs application. By definition, JSON Web Tokens are an open, industry-standard RFC 7519 method for representing claims securely between two parties. So let’s not waste any more time and
Cloudinary in nodejs API integration to upload an image
In this tutorial, we will be learning how to integrate Cloudinary image upload API in nodejs. If you remember, previously in one of our posts, we discussed how we can upload a file in nodejs and if you haven’t checked it out