Javascript Posts

Blog card feature

API Versioning with NodeJs and Express

Why do we need API Versioning? For a simple API, being able to create separate versions may not be necessary. However, for larger API's with…

Blog card feature

Connecting to a SQL Server Database via NodeJs

Every full-stack application in production today probably connects to a database of some variety, whether that be a NoSQL database like…

Blog card feature

Creating a Realtime Chat with NodeJs, Express and Socket.io

A few years ago I was tasked with building a mobile app (which happened to be my first). Part of this app's requirements was to have private…

Blog card feature

How to calculate the number of days between two dates in javascript?

Date manipulation and calculations are core to a huge amount of enterprise business logic. Being a wizard at using dates and turning them…

Blog card feature

How to Calculate the Number of Months Between Two Dates in Javascript

Manipulating dates in Javascript is an extremely common requirement for a large number of apps and server logic (when using NodeJs). The…

Blog card feature

How to setup an Angular HTTP Interceptor

What is an HTTP Interceptor? Every HTTP transaction that occurs between the client and server of web applications has a request and a…

Blog card feature

How to Setup Scheduled Functions with NodeJs, Express and Node-Cron

Create a NodeJs application - npm init - npm i express Setup the express server - Create the app.js file (or server.js is you prefer) Add…

Blog card feature

How to Use Environment Variables in An Angular App

Environment variables in an Angular app are extremely useful for storing constants in your app that need to be used frequently, such as API…

Blog card feature

How to use Environment Variables in NodeJs with Express and Dotenv

NodeJs Environment Variables Environment variables in NodeJs are essential for setting configuration options as well as storing important…

Blog card feature

HTTP Interceptors in a Create-React-App with Axios

Create a React App The first thing we'll need to add HTTP interceptors to is an app... Using the instruction on the Create-React-App site…

Blog card feature

Integrating Firebase with Ionic + Angular

Firebase  provides a wide variety of modules that are highly useful for mobile & web apps, particularly Authentication, Firestore DocumentDB…

Blog card feature

Remove Duplicate Entries From a Javascript Array

Arrays are one of the most common data structures you will use in Javascript. They create lists for displaying to users that can be simple…

Blog card feature

Sorting an Array of JavaScript Objects in a Specific Order

Sorting an array of objects in javascript is simple enough using the default sort() function for all arrays: And it is trivial enough to…