mikealche

How to add a WordPress Blog to a Next.js app as a subdirectory in the same domain to boost SEO

Hey there! lately I’ve been working on a project of mine which is made with Next.js. However, for SEO/Marketing purposes one always has to add a blog to it. Since I don’t like the idea of having to use a private CMS (Strapi/Contentful/etc…) as an API and having the sidetracking task of creating a full …

How to add a WordPress Blog to a Next.js app as a subdirectory in the same domain to boost SEO Read More »

What could you learn from seeing your startup as a neural network?

I’m consulting for a company that the had a crucial team member taking “extended vacations”. Ouch! That made me think of how it was super important not to have “single point of failures” your team. Meaning, almost always ensure that at least two team members know how to handle a given piece of software or …

What could you learn from seeing your startup as a neural network? Read More »

How to create a Multi-tenant application with Next.js and Prisma

Multitenancy is the pattern of serving multiple clients from a single codebase. Each client is called a “tenant” and is able to customize part of the application, i.e: the URL, the branding, some rules, etc… The following are some examples of multi-tenancy makes sense: A no-code website creator that also provides hosting. For example, each …

How to create a Multi-tenant application with Next.js and Prisma Read More »

How to serialize related fields as camelCase in Adonis.JS V5

Hey there! This will be a short post about a small thing that I encountered while using Adonis.js V5 The thing is that the default naming strategy serializes everything but related models as camelCase. To have EVERYTHING serialized as camelCase do the following: 1. Create the ‘CamelCaseNamingStrategy.ts’ file Then, once you’ve done that, register that …

How to serialize related fields as camelCase in Adonis.JS V5 Read More »

Advanced Promises in Javascript (Dataloader Pattern)

Hi there! In this post I want to show a possible scenario/problem that may appear in some applications and lay down the basics of the technique used to solve it. The first scenario The scenario we’re talking about is one in which there’s an application whose logic is so complex that some performance inefficiencies start …

Advanced Promises in Javascript (Dataloader Pattern) Read More »