tooling

Call your Azure AD B2C protected API with authenticated HTTP requests from your JetBrains IDE

Automatically acquire OAuth 2.0 tokens

I have written several blog posts about HTTP clients in the past. I am a big fan of using HTTP text files versioned in a git repository alongside API code and executed by an IDE tooling. However, there was one use case where a GUI tool like Postman or a swagger page was more convenient: retrieving OAuth 2.0 users' tokens. Thanks to the latest OAuth 2.0 feature in JetBrains' IDE built-in HTTP client, this is no longer an issue.

Read more...

Who is using pnpm?

Discussion about pnpm usage and popularity.

You may have come across pnpm through discussions with fellow developers, reading blog posts, watching videos, or attending developer conferences. You have probably heard its praises: it's fast, disk-space efficient, and great for monorepos.

Read more...

Execute commands using your project dependencies

pnpm exec

You have a dependency in your project and want to execute a command using it? The pnpm exec command can help you with that.

Read more...

Manage multiple Node.js versions

pnpm env

If you are working on various projects, you have likely encountered situations where you need to have multiple versions of Node.js installed on your computer.

Read more...

Perform Dynamic Execution of an npm Package

pnpm dlx

Sometimes, all you want to do is grab an npm package and execute a command with it, without having to install it (whether globally or as a dependency).

Read more...

Week 46, 2022 - Tips I learned this week

Some tips about .NET, pnpm, and Azure DevOps.

This week, I installed .NET 7 on my laptop and I used Windows Package Manager for that:

Read more...

Discussion about API clients

What should you consider when choosing an API client?

This article is a discussion about API clients. Without being a comparison between the best API clients, this article talks about the pros and cons of some popular tools to send HTTP requests to an API. The goal is not to elect the best one, but rather to try to answer the following question: what we should consider when choosing an API client, and what are the challenges when using one?

Read more...

How did I automate the setup of my developer Windows laptop?

A git repository, 2 packages managers, a little bit of scripting, and here is my new environment ready

In this article, I talked about my latest project: how I built a script to automate the setup of my developer machine using Boxstarter, Chocolatey, Winget, and PowerShell... and how I learned a few things along the way.

Read more...

Keeping secrets secure when using API Clients

Playing with Azure CLI and Nushell to generate a secret environment file to send HTTP requests

When using some API Clients (like REST Client or the HTTP Client of JetBrains' IDEs), environment variables are stored in JSON files that can contain secrets. To share these files within a team, developers tend to send them by email or by messaging applications, which is not very convenient nor secure 🔐. I thought it would be a good idea to store these secrets directly in an Azure Key Vault and automate the generation of a JSON file containing the secrets using Azure CLI and Nushell.

Read more...

Week 20, 2022 - Tips I learned this week

The "this" in TypeScript, a must-have tool for Durable Functions, and a new git alias.

Once again, I found myself forgetting that this can lose context in JavaScript/TypeScript which results in exceptions because this is undefined. This is probably obvious for most developers but this is not a case I come across often so it's better to write it down so that I have something to refer to next time.

Read more...