Redirect all requests from HTTP to HTTPS in Node.js and Express
The first step will be to create a method to guess if the HTTP request comes from HTTP or HTTPS (secure or not secure). In some context like AWS or Heroku you will have to ask by the header x-forwarded-proto instead of req.secure.
How to build a sitemap xml in Node js using Express
A good sitemap.xml will help you a lot in terms of SEO. It’s a nice starting point if you want to index your site. It’s just a standard XML file that search engines understand.
Better Queue in Node JS
A good practice in software development is to delegate as much heavy work as possible to background jobs to avoid blocking the main execution of your application that can be a web app, mobile app, or desktop.
How to configure HTTPS in Node.js
Sometimes we need to configure a secure environment locally to test how our application reacts to HTTPS.
Hash text in Node.js
Hash a string in Node.js without extra dependencies
Compress a file in Node.js
Zip a file in Node.js it's easy using zlib
Upload big files to S3 using Node.js
Sometimes you need to upload a big file, let say bigger than 100MB. Stream from disk must be the approach to avoid loading the entire file into memory.
How to connect to a PostgreSQL database in Node.js
A simple example about how to connect to a PostgreSQL database using Node.js
How to use a GitHub repository as a dependency in Node.js
Sometimes you need a dependency that is not published as a regular package at npmjs.com
Full-text search in Node JS - search related data
If you are building a website, e-commerce, a blog, etc., you will need a full-text search to find related content like Google does for every web page.
Optimizing Node JS code
Dealing with concurrency in Node.js
Even though the Event Loop is a single thread we have to take care of race condition since 99% of our code will run in a non main thread.
How to configure http auth basic in Node js and Express
Let’s build a small site in Node.js using Express that will have one protected page
Cache implementation in Node.js
A cached value it’s dynamic data, expensive to calculate, that we make it constant during a period of time.
Configure Prettier in your Node JS project
Prettier is a code formatter that supports many languages and can be integrated with most of the editors
How to connect to a Redshift database from Node.js
A util piece of code to connect to a Redshift database
You can put anything you want inside of these side widgets. They are easy to use, and feature the new Bootstrap 4 card containers!