Skip to main content

Padding Tutorials

What do you want to build?

102 tutorials

All tutorials

  • How to Set Up Tailwind CSS 4 with Vite

    You will add Tailwind CSS 4.3 to a new Vite 8 project with its official Vite plugin, style a card with utility classes, add your own brand colour with @theme, use the dark and responsive variants, and check in the production build that only the classes you use are generated.

    Beginner · 18 min · Design and frontend

  • How to Improve Largest Contentful Paint (LCP) on Your Website

    You will measure Largest Contentful Paint on a deliberately slow page, find which of its four parts is wasting time, fix it by making the hero image discoverable early and by serving a smaller one, and learn how to check the result with field data, because 2.5 seconds is the line between good and not good.

    Intermediate · 24 min · Design and frontend

  • How to Build Page Layouts with CSS Grid

    You will build a page with a header, sidebar, main area and footer using named grid areas, fill it with a grid of cards that adds and removes columns by itself, make one card span two columns, and change the layout for narrow screens.

    Beginner · 18 min · Design and frontend

  • How to Build Accessible HTML Forms

    You will build a contact form that works with keyboards and screen readers, with real labels, grouped radio buttons, hints tied to their fields, autocomplete values, and an error summary that takes focus and links to each problem, checking the result against specific WCAG 2.2 criteria.

    Intermediate · 24 min · Design and frontend

  • How to Add Dark Mode to a Website with CSS Variables

    You will define your colours once as CSS custom properties, switch them with light-dark() and the user's system setting, add a toggle button that remembers the choice without a flash on reload, and check the text contrast of both themes with a short script.

    Intermediate · 20 min · Design and frontend

  • How to Find and Fix Slow PostgreSQL Queries with EXPLAIN ANALYZE

    You will read a PostgreSQL 18 query plan, add an index that turns a 40 ms table scan into a 0.2 ms lookup, and use pg_stat_statements to find which queries deserve that effort.

    Advanced · 16 min · Databases

  • How to Install Valkey 9.1 (a Redis-Compatible Cache) on Ubuntu 26.04

    You will install Valkey 9.1 from the project's official binary release, run it as its own user with a password and a memory limit, and use it as a cache from the command line.

    Beginner · 12 min · Databases

  • How to Install PostgreSQL 18 on Ubuntu 26.04 and Create Your First Database

    You will install PostgreSQL 18 from the official PostgreSQL apt repository, create a database and a user for your app, and connect to it with a password.

    Beginner · 11 min · Databases

  • How to Install MySQL 9.7 LTS on Ubuntu 26.04

    You will install MySQL 9.7 LTS from Oracle's official apt repository, close it to the network, create a database and a limited user for your app, and connect with a password.

    Beginner · 12 min · Databases

  • How to Install MongoDB 9.0 and Create a Database and User

    You will install MongoDB 9.0 Community from the official MongoDB apt repository on Ubuntu 26.04, turn on authentication, and create an admin user and a limited user for one app database.

    Beginner · 13 min · Databases

  • How to Back Up and Restore a PostgreSQL Database with pg_dump

    You will back up a PostgreSQL 18 database in three formats, restore it into a fresh database, check the copy matches, and schedule a nightly backup that deletes old files.

    Intermediate · 14 min · Databases

  • How to Monitor a Linux Server with Prometheus and Node Exporter

    You will install Node Exporter 1.12 and Prometheus 3.16 from the official release files on Ubuntu 26.04, run both as locked-down systemd services that listen on localhost only, and query your server's CPU, memory and uptime with PromQL.

    Intermediate · 25 min · Data and monitoring

  • How to Stop Log Files Filling Your Disk with logrotate

    You will write a logrotate 3.22 rule for an application's log on Ubuntu 26.04, rotate it by size or age, compress and expire old copies, and fix the classic problem where a program keeps writing to the rotated file, using copytruncate and a signal to reopen the log.

    Beginner · 18 min · Data and monitoring

  • How to Clean and Summarise a CSV File with pandas

    You will take a messy orders CSV with stray spaces, mixed spellings, money written as text, odd dates, missing values and a duplicate row, and clean it with pandas 3.1 on Python 3.15 into a tidy file plus per-country and per-month summaries.

    Beginner · 22 min · Data and monitoring

  • How to Build Your First Grafana Dashboard from Prometheus Data

    You will install Grafana 13.3 from its apt repository on Ubuntu 26.04, set the admin password before the first start, keep it on localhost, connect it to Prometheus, and build a server overview dashboard with uptime, memory and CPU panels that lives in a file you can keep in Git.

    Intermediate · 25 min · Data and monitoring

  • How to Send Alerts with Prometheus Alertmanager

    You will write alert rules in Prometheus 3.16, test them with promtool, install Alertmanager 0.35 on Ubuntu 26.04 listening on localhost only, route alerts to a receiver, trigger and resolve a real alert by stopping Node Exporter, and learn silences and an email receiver whose password stays in a file.

    Advanced · 30 min · Data and monitoring

  • How to Write a Dockerfile for a Node.js App

    You will write a Dockerfile for a small Express app on Node.js 26, build it into an image, run it as a container on port 3000 as a non-root user, and order the file so rebuilds take seconds.

    Beginner · 14 min · Containers and Kubernetes

  • How to Run Your First Kubernetes Cluster Locally with kind

    You will create a one-node Kubernetes 1.37 cluster inside Docker with kind, talk to it with kubectl, run a pod from a public image and from an image built on your own machine, and delete the cluster when you are done.

    Beginner · 14 min · Containers and Kubernetes

  • How to Shrink Docker Images with Multi-Stage Builds

    You will build the same small web site into two Docker images, one in a single stage and one in two, and see the second come out several times smaller because it ships only the built files and a web server.

    Intermediate · 13 min · Containers and Kubernetes

  • How to Configure a Kubernetes App with ConfigMaps and Secrets

    You will keep settings and credentials out of your container image by passing them to a Kubernetes 1.37 Deployment as environment variables and as mounted files, update them without rebuilding, and learn what a Secret does and does not protect.

    Intermediate · 17 min · Containers and Kubernetes

  • How to Install Docker Engine on Ubuntu 26.04

    You will install Docker Engine 29 from Docker's official apt repository on Ubuntu 26.04, run the hello-world image to prove it works, and set it up to start at boot, run without sudo and keep its logs from filling the disk.

    Beginner · 11 min · Containers and Kubernetes

  • How to Run an App and PostgreSQL Together with Docker Compose

    You will describe a Node.js app and a PostgreSQL 18 database in one compose.yaml, start both with one command, keep the data in a named volume, and keep the database password out of the file.

    Intermediate · 16 min · Containers and Kubernetes

  • How to Deploy an App and Expose It with a Service on Kubernetes

    You will run an app on Kubernetes 1.37 as a Deployment with two replicas, watch it heal itself, give it a stable address with a Service, reach it from your computer, and roll out a new version with a way back.

    Intermediate · 16 min · Containers and Kubernetes

  • How to Store Terraform 1.17 State Remotely in an S3 Bucket

    You will create a private, versioned and encrypted S3 bucket for Terraform state, point Terraform 1.17 at it with native S3 locking, move an existing local state into it, and delete the bucket correctly when you finish.

    Advanced · 18 min · Cloud and deployment