How-to tutorials

Build real applications step by step. Each tutorial explains why before how, uses animated diagrams instead of walls of text, and gives you code that was compiled, run and tested before it was published. Free, no sign-up.

Tutorials by topic

Every chapter of a course also works as a focused tutorial on its own topic. Pick the one you need, or follow a course from the start.

System Design

Understanding What We Are Building

A free, interactive course: build a Twitter (X) clone with React, Java 21, Spring Boot and PostgreSQL. Start here: the core features, the MVP and what comes later.

Build Twitter from scratch · Chapter 1⏱ 17 min◆ Beginner
Product planningMVPFeatures
System Design · Backend

Understanding the Architecture

How a Twitter-like app is put together: React frontend, Spring Boot backend, PostgreSQL, REST APIs, JWT authentication, Redis caching and WebSockets, with animated request flows.

Build Twitter from scratch · Chapter 2⏱ 27 min◆ Beginner
RESTJWTCachingWebSockets
Databases

Database Design

Design the PostgreSQL schema for a Twitter clone: users, posts, follows, likes, comments, reposts and notifications, with an interactive ER diagram, real CREATE TABLE SQL and indexes.

Build Twitter from scratch · Chapter 3⏱ 33 min◆ Beginner
PostgreSQLSQLIndexesER diagram
Backend

Backend Development with Spring Boot

Build the Twitter clone REST API with Java 21 and Spring Boot 4: registration, JWT login, posts, follows, likes, comments, the home feed and cursor pagination. Every file tested.

Build Twitter from scratch · Chapter 4⏱ 1 h 30 min◆ Intermediate
Java 21Spring BootJWTREST API
Frontend

Frontend Development with React

Build the Twitter clone UI with React 19, Vite and React Router: login and sign-up, the home feed, a post composer, profiles, likes, replies and follows, connected to the Spring Boot API.

Build Twitter from scratch · Chapter 5⏱ 1 h 0 min◆ Intermediate
ReactViteReact Routerfetch
Backend · Cloud

Advanced Features: Redis, WebSockets, S3 and Search

Add Redis caching, push-model timelines, live WebSocket notifications, S3 image uploads with presigned URLs and PostgreSQL full-text search to the Twitter clone. Push vs pull feeds explained.

Build Twitter from scratch · Chapter 6⏱ 1 h 44 min◆ Intermediate
RedisWebSocketsAWS S3Search
System Design

System Design and Scalability

What changes when a Twitter clone grows from hundreds to millions of users: database bottlenecks, read replicas, caching strategies, load balancing, message queues, fan-out and microservices.

Build Twitter from scratch · Chapter 7⏱ 37 min◆ Intermediate
ScalingReplicasLoad balancingQueues
DevOps · Cloud

Testing and Deployment

Test the Twitter clone with JUnit, Mockito and Testcontainers, script end-to-end API tests, Dockerize React and Spring Boot, handle secrets and deploy it, with a production checklist.

Build Twitter from scratch · Chapter 8⏱ 51 min◆ Intermediate
JUnitTestcontainersDockerDeploy
AI & ML

Understanding Claude and Modern AI

What Claude and other large language models are, how AI assistants like ChatGPT, Claude and Gemini work, AI vs ML vs deep learning, and tokens, context windows and embeddings explained.

Build Claude from scratch · Module 16 lessons⏱ 1 h 40 min◆ Beginner
LLMsClaudeTokensEmbeddings
AI & ML

Mathematics and Foundations

The maths behind neural networks and LLMs, intuition first: vectors, matrices, matrix multiplication, probability, softmax, loss functions, gradients and backpropagation, with Python demos.

Build Claude from scratch · Module 26 lessons⏱ 1 h 41 min◆ Beginner
Linear algebraProbabilitySoftmaxBackpropagation
AI & ML

Build a Neural Network from Scratch

Build and train a neural network with only Python and NumPy: neurons, layers, forward propagation, backpropagation, gradient descent and a live training and loss visualisation.

Build Claude from scratch · Module 37 lessons⏱ 2 h 8 min◆ Intermediate
NumPyBackpropagationGradient descentTraining
AI & ML

Understanding Transformers

How transformers work, with interactive diagrams: why RNNs struggle, tokenization, embeddings, positional encoding, self-attention, Q/K/V, multi-head attention, layer norm and a NumPy transformer.

Build Claude from scratch · Module 49 lessons⏱ 2 h 20 min◆ Intermediate
TransformersSelf-attentionQ K VPositional encoding
AI & ML

Build a GPT-like Language Model

Build a tiny GPT-style language model: a BPE tokenizer, vocabulary, dataset, next-token prediction, a decoder-only transformer, training, temperature, top-k and top-p sampling, and hallucinations.

Build Claude from scratch · Module 59 lessons⏱ 2 h 46 min◆ Advanced
GPTTokenizerDecoder-onlySampling
AI & ML

How Claude Is Different

From a raw language model to an assistant: supervised fine-tuning, RLHF, preference optimization, Constitutional AI, safety training, system prompts, long context and tool use, separating public facts from proprietary details.

Build Claude from scratch · Module 69 lessons⏱ 2 h 19 min◆ Intermediate
Constitutional AIRLHFDPOAlignment
AI & ML · Frontend

Build Your Own AI Assistant

Build a Claude-like chat app in plain HTML, CSS and JavaScript: conversation state, system instructions, context management, streaming responses, Markdown and code rendering, syntax highlighting and error handling.

Build Claude from scratch · Module 710 lessons⏱ 2 h 10 min◆ Intermediate
Chat UIStreamingMarkdownJavaScript
AI & ML · Backend · Databases

Memory and RAG

Give an assistant memory and knowledge: short- and long-term memory, embeddings, vector databases, semantic search, chunking, retrieval-augmented generation, a document Q&A system and source citations.

Build Claude from scratch · Module 88 lessons⏱ 2 h 32 min◆ Intermediate
RAGEmbeddingsVector searchChunking
AI & ML · Backend

Function Calling and AI Agents

How LLMs call tools: tool definitions and JSON Schema, executing calls, the agent loop, search and calculator tools, multi-step planning, agent architecture, permissions and a working tool-using agent.

Build Claude from scratch · Module 99 lessons⏱ 2 h 44 min◆ Advanced
Tool useJSON SchemaAgentsPlanning
AI & ML

Fine-Tuning and Training

Pretraining vs fine-tuning, collecting and cleaning data, instruction datasets, LoRA and QLoRA, how much GPU memory you really need, realistic training costs, and how to evaluate and benchmark models.

Build Claude from scratch · Module 108 lessons⏱ 2 h 23 min◆ Advanced
Fine-tuningLoRAQLoRAEvaluation
AI & ML · DevOps · Cloud

Deployment and Production

Run and serve language models: inference, KV cache, quantization, CPU vs GPU, local models with Ollama and Hugging Face, API design, Docker, monitoring, rate limiting, security and cost control.

Build Claude from scratch · Module 119 lessons⏱ 2 h 36 min◆ Advanced
InferenceQuantizationOllamaDocker
AI & ML · Frontend · Backend

Final Capstone Project: Your Own Claude-like Assistant

Build a complete Claude-like assistant: responsive chat UI, history, streaming, Markdown and code, system prompts, document Q&A, memory, tool calling, configurable model providers and error handling.

Build Claude from scratch · Module 128 lessons⏱ 2 h 2 min◆ Advanced
CapstoneRAGTool callingStreaming

How these tutorials work

Most "build X from scratch" articles show the finished code and skip the decisions. These tutorials go the other way: every chapter starts with what you will learn and why it matters, explains the idea with a diagram or an animation you can step through, then builds it with complete, runnable code, the output you should see, the mistakes people usually make, and a short knowledge check.

The code is real. The Twitter (X) course was written alongside a working project (Spring Boot backend, React frontend, PostgreSQL, Redis and S3-compatible storage) that was built, run and tested with automated API and browser tests before publishing. When a chapter simplifies something on purpose, it says so and explains what production systems do instead.

What you need

Basic programming knowledge in any language. You do not need to know Spring, React, SQL or system design yet: each idea is introduced the first time it is used. To follow along on your own computer you need Java 21, Node.js 24 and Docker, all free.

Prefer a list of topics to study instead of a project? See the learning roadmaps for Java, the backend, system design, SQL, Redis, Docker and more.