Category: web dev

  • Bruno asserts

    I mentioned Bruno the other day. Although it’s still very much under development, it is shaping up as a great Postman/Insomnia replacement. One of the aspects I’ve been using today is asserts. As part of a request, you can add some asserts – so when you’re hitting an endpoint it will check what status should…

  • Displaying markdown as HTML

    In the spirit of over-complicating things, when I wanted to collect all the links to the services on my homelab into one place, I decided I needed to write them in markdown, and have them converted on the fly into HTML by a server. Then when I couldn’t find exactly what I was after (Harp…

  • We need to talk about Bruno

    I’ve mentioned before that I was using Insomnia as a tool to check my REST APIs as I was developing them, and that I was avoiding Postman (which I guess is more widely used since it’s worth USD5.6 billion) because The only reason I’m using Insomnia instead of Postman is that when I tried Postman,…

  • New Project Routine

    I have a sort of muscle memory for starting little web projects now. I seem to have landed on node/express SSR apps with HTMX sprinkles. So it goes a bit like this: Express Skeleton That’s my basic web app setup, but since this is an express app, and we’re using some EJS templating, there’s some…

  • Simple API endpoint in Go

    I’d like a small, quick, low load endpoint on all my nodes and VM’s that exposes a text keyword indicating if that machine is okay for RAM and disk space. I’m currently using Uptime Kuma to monitor if these machines are pingable, but I’d love a tiny bit more information from them so I’d get…

  • Use VS Code to work on remote files

    If you’ve got a script, or some code to work on, and it’s on a VM somewhere, you can always ssh in and use nano or vim to make your edits. Like a caveman. With an archaic editor, no intellisense, and no spell checking. Or…. This magic – of editing a files on a remote…

  • Lightweight Web Servers

    I’ve been using the excellent Uptime Kuma for my monitoring, but a couple of recent incidents – an external USB mount disappeared on a remote machine, an NVME drive filled up on a different node and stopped backups working because of a configuration error – have made me start to think about more robust monitoring.…

  • Cookies, Sessions & Tokens

    I’m up to the point in a web app where it needs to come off my lan and into the hands of a couple of users for alpha feedback. Before that happens, I have to add some sort of login/authentication system since it I want to use real, sensitive data. There’s lots of detailed blog…

  • Sorting out Node package dependencies when cloning old repos

    If you clone an old node project and npm install it, you’ll most likely get a bunch of errors and warning messages. If you just decide to yolo it and run the project, you’ll get a bunch more. I’ve been doing this exact thing. I want to add some auth to my app, and I’ve…

  • Hide ‘Problems’ for a file in VS Code

    I’m interested in trying out Pico CSS – a lightweight CSS library, but when I tossed it into my project, the linter found and reported 29 problems. One of my processes is to just keep that problems tab clear as I work, so I’d like that to go away. It’s possible, but only by ‘excluding’…