Tag: Node
-
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…
-
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.…
-
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…
-
Installing a Node app on a server
Before I write a fancy Ansible playbook to automatically set up the Nginx/Node combo on my web servers, it might be worth going through how to deploy a Node app so it can run on a server without you being logged in. Until now, I’ve been running my tests on my laptop, or in a…
-
Finding the host IP from inside a Docker container
Having successfully set up and tested my node.js api handling app behind nginx on a development VM in the homelab, I decided to move it to my VPS so I could start using it for real. I had a bit of trouble finding the nginx.conf files on the VPS, until I remembered I was running…
-
nginx in Front of a node.js app
NGINX is a great webserver and reverse proxy – as in it can hand off requests to other web-servers. That’s the situation I want to have set up on my VPS. I want NGINX to handle incoming requests – some of them will just be sorted out by returning static HTML, others (like the weather…
-
How to deploy a Node.js app
This is one of those things that is simple once you know it. I had my tiny Node service working on my MacBook, but how do I run it on the server? Native or Container Obviously I need Node.js installed on the server, should I have it in a Docker container, or native on the…
-
Using Node.js to return a static file
As mentioned in the previous post, stage one is just to return the same static text file, but from the Node server, rather than NGINX. That’s non-trivial to a rank beginner since I need to figure out 1) how to serve a static file from Node, and 2) how to configure NGINX to hand off…
-
Complicating the Temperature API
I’ve been slammed with other work, so my web dev learning has fallen well behind. Luckily, the YouTube procrastination algorithm noticed this and suggested I watch a video from CodeWithCon titled Learn Backend in 10 MINUTES. Since I was watching a video of a guy learning to land a C152 at St Baths (a skill…