image post

Better Queue in Node JS

Move heavy processing task to background with better-queue module in Node.js
Aug 03, 2020
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

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

Compress a file in Node.js

Jul 27, 2020
Zip a file in Node.js it's easy using zlib

image post

Hash text in Node.js

Hash a text using native crypto module in Node JS. No extra dependencies.
Aug 02, 2020
Hash a string in Node.js without extra dependencies

image post

5 reasons to choose WordPress as your content management tool

Popularity. Flexibility. SEO. Free and paid plans. Awesome editor
Jul 31, 2020
As Engineer I installed WordPress many times, facing issues such as performance and security. When you host WordPress by your own...

image post

Upload big files to S3 using Node.js

Stream big files from disk and upload them to AWS S3 bucket using chunks
Jul 29, 2020
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

Connect to Postgres database in Node js using pg and parse-database-url packages
Jul 28, 2020
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

Aug 30, 2020
Sometimes you need a dependency that is not published as a regular package at npmjs.com

image post

How to configure and use testcontainer in Node.js

testcontainer as a Node.js module to create dynamic containers
Oct 13, 2021

image post

Optimizing Node JS code

Small actions that may generate big impact in your performance
Aug 03, 2020
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

Yeap, race condition is present also in Node.js regardless the single thread Event Loop
Aug 30, 2020
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

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

Detect record changes in a Lightning Component

Listen to events when a record changes outside your Lightning component
Apr 16, 2021
Listening to changes in a Lightning Component from record changes


image post

Cache implementation in Node.js

A custom cache implementation to show how Promises powerful are
Aug 08, 2020
A cached value it’s dynamic data, expensive to calculate, that we make it constant during a period of time.


image post

How to send a message to AWS SQS queue from Salesforce Apex class

Surprisingly, making a callout to put a message in AWS SQS queue is tricky in Apex
Jan 31, 2021
How to post a message in an AWS SQS queue from an Apex class in Salesforce

image post

Node.js and typescript project template

Oct 08, 2021
A project template with typescript, jest and linter among others configurations

image post

How to connect to a Redshift database from Node.js

See how to use pg-promise to connect to a AWS Redshift database
Aug 11, 2020
A util piece of code to connect to a Redshift database

image post

How to download a Salesforce file from Node.js

A JavaScript snippet to download a Salesforce file using the Rest API
Apr 20, 2021
Download a file from Salesforce using Node.js

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

Clean up more than two spaces and new lines with regex

A simple JavaScript method that removes all newlines and multiple spaces from a given text
Aug 28, 2020
A simple JavaScript method that removes all new lines and multiple spaces (including tab spaces) by a single space

image post

Configure Prettier in your Node JS project

How to configure Prettier to format your code as It was written by only one developer
Aug 08, 2020
Prettier is a code formatter that supports many languages and can be integrated with most of the editors

image post

DB schema updates with knex in Node.js

Run database migration with knex
Feb 06, 2021
Knex is a query builder and among other things, it's an awesome tool to run DB migrations to create tables and modify them as you usually do with SQL scripts

image post

Protect your social networks with two-factor authentication

See how to protect the most used social networks
Apr 29, 2021
Nowadays a super complex password is not enough to avoid being hacked. In fact, most of the times your password is not guessed by brutal force (try until it works).

image post

Download and save a file in Node.js

Get a file from a server and store it in your disk
May 13, 2021
Download a file in Node.js is pretty straightforward. We are going to make an implementation using native modules. No third parties.

image post

Get Visualforce usage stats from VisualforceAccessMetrics

How to find out how often your Visualforce pages are accessed using Visualforce Access Metrics
Aug 08, 2020
If you want to know how frequently your Visualforce pages are accessed, you just have to run a simple query on VisualforceAccessMetrics

image post

How to connect to a MySQL database in Node.js

Oct 12, 2021
To connect to a MySQL database in Node.js is pretty straightforward with the module mysql2.

image post

Node.js Express Mysql stack deployed on Heroku

How to build a rest API from zero using Node.js, Express and MySQL
Oct 09, 2021
Let's build a Rest API from scratch that uses a MySQL database. We are going to use Node.js and Express as a framework to generate some scaffolding for our Rest API

image post

jsxBracketSameLine - Prettier how to configure

bracketSameLine is the new version of jsxBracketSameLine
Oct 29, 2021
Pro tip: instead of running by hand, you can integrate it with you favorite IDE

image post

Call an Apex method from Process Builder

See how to configure a Flow with process builder to execute an Apex method in Salesforce
Nov 11, 2021
As a thumb of rule in Salesforce you should always try to create new business logic through point-and-click but sometimes our logic it's a bit special and we need some Apex code.

image post

Invalid request provided: AWS::AppFlow::FlowCreate - Salesforce integration

This is a common error when a field is mapped in App Flow but it doesn't exist in Salesforce
Nov 19, 2021
Resource handler returned message: "Invalid request provided: AWS::AppFlow::FlowCreate Flow

image post

Salesforce integration with AWS AppFlow, S3, Lambda and SQS

Send data out of Salesforce with AWS AppFlow service in realtime
Aug 24, 2021
There are many ways to sync up our Salesforce data with third parties. One option is a mix of Salesforce and AWS services, specifically Change Data Capture from Salesforce and AppFlow from AWS.

image post

Salesforce inspector: a Salesforce data explorer and exporter

Chrome and Firefox extension to inspect and export data from Salesforce
Jan 18, 2022
A productivity tool for Salesforce administrators and developers to inspect data and metadata directly from the browser without compromising security and privacy

image post

Bye bye FindBugs. Hello SpotBugs

Even FindBugs is no longer maintained we have an alternative called SpotBugs.
Aug 08, 2020
I used to use FindBugs plugin in my Java projects to detect and learn about issues and potential issues in my source code.

image post

jsonplaceholder - free and unlimited json API placeholder

Mock backend data with a free and unlimited json API
Jan 05, 2022
Frandom is a JSON Placeholder fake REST API that is mainly used for prototyping and testing.

image post

What is Node.js and what is the Event Loop

Node.js is a JavaScript runtime environment to run server-side web applications
Dec 03, 2021
Node.js provides simplicity in development because of its non-blocking I/O and even-based model results in short response time and concurrent processing, unlike other frameworks where developers have to use thread management.

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

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.