Angular 15/16 Free Course #8 - Dockerize App with Nginx
In part 8 of this Angular tutorial series we're going to Dockerize our app to run in a production ready Docker container with Nginx.
View ArticleAdd Google AdSense to a Single Page App - React, Angular, Vue, Next etc...
I recently integrated Google AdSense into my AngularJS blog and this is how I got it working.
View ArticleFix for MongooseServerSelectionError: connect ECONNREFUSED ::1:27017
Just ran into this error after updating from Node 16 to Node 18.
View ArticleVanilla JS - Wrap Object Methods in Try/Catch to Handle Errors in JavaScript
I created the below function recently to encapsulate error handling logic for multiple JS object methods in a single place.
View ArticleNext.js 13 - Fix for client component ('use client') hangs when fetching data...
I ran into a weird problem this morning that had me stumped for a few hours. One of my client components was causing Chrome to lock up and max out my CPU without giving me any error message.
View ArticleVanilla JS - Slugify a String in JavaScript
A slug is typically all lower case, separated by dashes (hyphens) instead of spaces and doesn't contain any special characters.
View ArticleVanilla JS - HTML Encode in JavaScript
HTML encoding simply replaces HTML special characters like angle brackets with HTML entities so they can be displayed as plain text in a web page.
View ArticleNext.js 13 + App Router + MongoDB - User Rego and Login Tutorial with Example
How to build a simple user registration, login and user management (CRUD) application with Next.js 13 (App Router) and MongoDB using TypeScript
View ArticleTypeScript - Set type on ...rest (spread) parameter in destructured object...
The thing I got stuck on was how to define the type for a ...rest parameter in a TypeScript interface.
View ArticleDeploy .NET 6 API to AWS Lambda with SQL Database (RDS) and Email (SES)
Detailed instructions on how to setup an AWS VPC from scratch then deploy a .NET 6 API to AWS Lambda with a SQL Database on AWS RDS (Relational Database Service) and Email via AWS SES (Amazon Simple...
View ArticleJavaScript - Add Business Days to Date (exclude Holidays & Weekends)
The below code sample shows how to add business days to a date, excluding weekends and public holidays in any specified country and state/region.
View Articlenpm pack for local package dependency testing
Steps to test npm package dependencies locally without publishing to npm.
View ArticleSearch all code in chrome dev tools sources tab
Steps to search across all client side code in the Sources tab of Chrome dev tools. Includes all JavaScript, HTML and CSS downloaded to the browser.
View Article