Andres Canavesi photo

javaniceday.com

Software development blog. Java, Node JS, Salesforce among other technologies

node

Card image cap

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

Read More →
Card image cap

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.

Read More →
Card image cap

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.

Read More →
Card image cap

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.

Read More →
Card image cap

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.

Read More →
Card image cap

How to connect to a PostgreSQL database in Node.js

A simple example about how to connect to a PostgreSQL database using Node.js

Read More →
Card image cap

Compress a file in Node.js

Zip a file in Node.js it's easy using zlib

Read More →
Card image cap

How to configure HTTPS in Node.js

Sometimes we need to configure a secure environment locally to test how our application reacts to HTTPS.

Read More →
Card image cap

Test Driven Development (TDD) in a nutshell

Every project has somewhere in the src folder a file called utils.js, Utils.java, utils.py, etc....

Read More →
Card image cap

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.

Read More →
Card image cap

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.

Read More →
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!