Java/TypeScript API generation

At work we have a Java backend that exposes HTTP endpoints for our frontend to call. Some do simple create/read/update/delete, some do specific requests, and there are a bunch to remember with many different types of objects that are returned. Because we rely on these API calls so much, we’ve put a lot of effort into tooling to make the frontend/backend communication as seamless as possible for our developers. Here is a brief overview before I go into detail:

More …

Seamless Deployments with Nginx + Docker Compose + Websockets

Docker is becoming the de facto standard for packaging web applications, and Docker Compose is a pretty simple way to deploy it. One downside is that during a deployment, the old version is taken down before the new version is deployed, causing a brief service outage for clients:

More …

JetBrains Projector in WSL2

So: You’ve got a nice fast Windows desktop, and a nice portable laptop, and you want to edit code in IntelliJ on the laptop and run it on the desktop. Seems easy enough, right? VS Code does this pretty much out-of-the-box with its Remote Development feature. But for (apparently complex architectural) reasons this is not so easily done on JetBrains IDEs, so instead they’ve released software called Projector that allows them to run the IDE on the server, but rendering the GUI over HTTP to your web browser. Sounds a little crazy but it works quite well!

More …

Storefront.nz: a minimal online shop

For the last few weeks I’ve been in COVID-19 self isolation, and on unpaid leave, so things have been pretty quiet. My parents, on the other hand, own a small orchard and are classed as essential personnel, so they’ve been hard at work picking plums, grading them, packing, and (as the market is closed) hand delivering fruit around the region, and sometimes shipping boxes further afield. A lot of the manual labour is unavoidable but the sales and payments seemed like a lot of wasted work, so I thought I’d try to help with a simple website where customers could order fruit.

More …

Weaknotes 5

Two successful kiteboarding sessions over the weekend! Had a fair bit of stopping and starting but eventually found the groove and wow, the feeling of being pulled over the water at high speed by the wind is like flying.

More …