image post
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.
image post
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.
image post
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.
image post
How to configure HTTPS in Node.js
Sometimes we need to configure a secure environment locally to test how our application reacts to HTTPS.
image post
Hash text in Node.js
Hash a string in Node.js without extra dependencies
image post
Compress a file in Node.js
Zip a file in Node.js it's easy using zlib
image post
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.
image post
How to connect to a PostgreSQL database in Node.js
A simple example about how to connect to a PostgreSQL database using Node.js
image post
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
image post
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.
image post
Optimizing Node JS code
At different levels you might optimize your JavaScript code. Sometimes optimization is a matter of good practices such as avoid using logging in loops.
image post
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.
image post
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
image post
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.
image post
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
image post
How to connect to a Redshift database from Node.js
A util piece of code to connect to a Redshift database
Search
Side Widget
You can put anything you want inside of these side widgets. They are easy to use, and feature the new Bootstrap 4 card containers!