Hi there đź‘‹

Welcome to Code Genos Computers, Programming and Development Blog
React Error Boundaries: Handling Rendering Errors Gracefully

React Error Boundaries: Handling Rendering Errors Gracefully

Your React app showed a blank white screen — here is how to prevent it. Walk through rendering vs. runtime errors, class-based Error Boundary implementation, and the react-error-boundary library with practical code examples.

February 25, 2026 Â· 11 min Â· 2211 words Â· CodeGenos
How to Install a Private Docker Registry on Raspberry Pi with Portainer (Home Network)

How to Install a Private Docker Registry on Raspberry Pi with Portainer (Home Network)

Run your own private Docker image registry on a Raspberry Pi using Portainer. This guide uses HTTP only (no TLS) with basic auth enabled. You will deploy the registry and a web UI via a Portainer Stack, configure clients to allow an insecure registry, and verify everything works on your home network. Note: A registry is the server (e.g., registry:2). Repositories are image collections inside the registry. TL;DR Image: registry:2 Runs on LAN over HTTP: :5000 (no TLS) UI: joxit/docker-registry-ui:latest on :5001 Auth: htpasswd basic auth Persist storage: bind mount /var/lib/registry Clients: add 192.168.1.100:5000 to Docker insecure-registries Prerequisites Raspberry Pi 4/5 (ARM64 preferred) Raspberry Pi OS 64‑bit or another 64‑bit Linux Docker and Portainer CE installed on Raspberry Pi A stable hostname or IP (e.g., 192.168.1.100) Check architecture: ...

August 24, 2025 Â· 5 min Â· 980 words Â· CodeGenos
How to Self-Host n8n on Raspberry Pi 4 (ARM64) with Docker Compose

How to Self-Host n8n on Raspberry Pi 4 (ARM64) with Docker Compose

This guide shows a clean, reliable way to run n8n on a Raspberry Pi 4 using Docker Compose. 📝 Note: I want to use this setup primarily for AI workflows (transcription, summarization, RAG, content drafting). What is n8n? n8n is an open‑source, self‑hostable workflow automation tool. You build automations by connecting nodes in a visual editor: Triggers like webhooks, schedules/cron, IMAP, polling start a workflow; you transform data, branch logic, handle errors, and call services/APIs or databases. ...

August 16, 2025 Â· 5 min Â· 993 words Â· CodeGenos
Pass Docker Env Variables to Vite Containerized Vue.js on Docker Run

Pass Docker Env Variables to Vite Containerized Vue.js on Docker Run

Environment variables can only be used in Vue.js applications at build time and the variables are hardcoded in javascript files during build. When you build docker image for the Vue.js application, you use the same image for test and production environments. But the Vue.js application config values can be different in test and production environments. For example: api url configuration value. Since the variables are different in those environments you must pass the configuration values for test and production environments at docker run: ...

September 13, 2023 Â· 4 min Â· 768 words Â· CodeGenos
How to Transfer Files with scp on Linux

How to Transfer Files with scp on Linux

Need to copy files to a headless Raspberry Pi over SSH? The scp command lets you securely transfer files and folders between machines on Linux. This guide covers local↔remote and remote↔remote copies, plus useful flags. What is the scp command? scp (secure copy) securely transfers files over an SSH connection. It uses the same authentication and encryption as SSH. In plain terms, scp is like copying a file from one folder to another, except the other “folder” is a computer you can reach over SSH. It’s simple, fast to use for everyday tasks, and available on most Linux and macOS systems by default. ...

September 8, 2023 Â· 4 min Â· 725 words Â· CodeGenos