image post

How to build a sitemap xml in Node js using Express

Create a sitemap in Node and Express framework for Search Engine Optimization
Jun 17, 2020
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

How to configure HTTPS in Node.js

See how to setup a secure environment in our local machine to test HTTPS
Jul 27, 2020
Sometimes we need to configure a secure environment locally to test how our application reacts to HTTPS.

image post

Full-text search in Node JS - search related data

Search related content using FlexSearch package for Node.js. See an implementation example with Express framewrok
Aug 04, 2020
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

How to configure http auth basic in Node js and Express

Aug 04, 2020
Let’s build a small site in Node.js using Express that will have one protected page

image post

Redirect all requests from HTTP to HTTPS in Node.js and Express

How to redirect all non secure requests to HTTPS in Node.js and Express
Jun 15, 2020
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

jsonplaceholder: a free fake API for testing and prototyping

JSONPlaceholder is a free online REST API that you can use whenever you need some fake data.
Sep 13, 2021

image post

Prettier config

Prettier is a code formatter that supports many languages and can be integrated with most of the editors.
Sep 09, 2021
With Prettier you will be able to define your own rules, however default rules are enough at the beginning.

image post

Sitemap xml creation

A sitemap is very important if you want to search engines discover and index your site properly.
Sep 09, 2021
No matter the language you are using in your site, this is the right way to create a sitemap.

image post

Salesforce rest api download ContentVersion

Download a Salesforce file (ContentVersion) through the API using Node.js with jsforce package
Sep 09, 2021

image post

flexsearch example

A super simple example to show how to index a collection of data and then run a full-text search
Sep 09, 2021
flexsearch It's an awesome package to index in-memory data