// writing

Notes and write-ups

everything tagged nodejs

tag map
8 min

LaundryAlert - never forget your laundry again

A few months ago I was hanging my laundry after it stayed in the washing machine for half a day before I remembered I had forgotten to take it out. And this didn’t happen for the first time. Maybe it happened to you too. I got fed up and that’s when I got an idea.

iot nodejs api
3 min

Javascript objects are tricky

I just spent four hours debugging a really weird issue… I’m gonna write it up here as a reminder for my future self, and maybe you’ll find it useful too.

nodejs today-i-learned
11 min

Server-sent events or how ChatGPT typing animation works

I’m sure you’ve heard of ChatGPT, the fastest-growing user application in the history of the internet. Most probably you also played with it or even used it for work. This chatting model provides impressive and often mind-blowing responses to a wide range of questions. But have you ever wondered how it works?

api nodejs frontend
19 min

Database locks, lost updates and idempotency

Web applications are often complex systems consisting of several parts such as UI (frontend), API (backend), database and often other 3rd party services that the application depends on. Designing the API service properly so it’s robust, secure, and works as expected goes without saying but sometimes there are other factors that should be considered and handled adequately.

api databases nodejs
4 min

Assuming IAM role and role chaining in AWS

Sometimes a user or an application needs to access resources they don’t normally have access to. This is where the AWS Security Token Service (STS) comes in handy. STS is an AWS service used to obtain temporary security credentials for IAM users or roles by using the AssumeRole action. This is useful in situations like:

today-i-learned aws nodejs
7 min

Running HTTPS on localhost

🚀 Quick note before you dive in! This article shows the way of creating your own SSL certificate for local use. It works… but it’s a bit of a hassle. If you’d rather skip the copy-paste-and-curse routine, check out Novus — a handy local HTTPS proxy for macOS. It sets up HTTPS with custom domains in minutes, so you can get straight to building cool stuff instead of fighting certificates.

nodejs devops docker
12 min

How We Migrated All User Files to AWS S3

Migrating data is often a challenging job, especially when every little mistake can instantly impact a user’s experience. Thus, it is necessary to research the task properly, pinpoint possible issues, and make sure the description is totally clear and everyone knows what is the expected result. Nevertheless, errors may (and most probably will) occur during the process so it is also important to keep that in mind and design the solution in a way that anticipates that and handles it accordingly. In the ideal situation, we want to complete the migration process without anyone even noticing that something has changed.

aws nodejs scripting