Tutorials
Welcome to the http4k tutorials! Whether you’re new to the library or an experienced user, our tutorials provide a hands-on approach to mastering http4k. Through guided examples, you will explore how to leverage http4k’s powerful yet lightweight framework to build robust, maintainable web applications. From setting up your first project to advanced topics like serverless deployment, the tutorials are designed to suit all levels of expertise.
Getting Started
From your first http4k app through to serverless deployment on AWS Lambda with both standard JVM and GraalVM native runtimes.
Serverless http4k with AWS Lambda
A step-by-step guide to deploying an HTTP app to AWS Lambda
Going native with Graal on AWS Lambda
A step-by-step guide to compiling http4k apps with GraalVM for AWS Lambda
TDDing http4k
A multi-part walkthrough of building an http4k application test-first, covering endpoint design, routing, and external dependencies.
TDDing http4k Part 1: Building a walking skeleton
A step-by-step guide to TDDing a simple http4k application
TDDing http4k Part 2: Adding an endpoint
A step-by-step guide to TDDing a simple http4k application
TDDing http4k Part 3: Adding another endpoint
A step-by-step guide to TDDing a simple http4k application
TDDing http4k Part 4: Adding an external dependency
A step-by-step guide to TDDing a simple http4k application
Building with MCP
Build MCP servers and interactive MCP Apps with http4k's Kotlin-first Model Context Protocol SDK.
Create an MCP Server in 2 Lines of Code
Build a working MCP server with http4k in just a few lines of Kotlin
Add MCP Capabilities
Add typed tool arguments, resources, prompts, and in-memory testing to an http4k MCP server
Building an MCP App with http4k
A step-by-step guide to building an interactive MCP App with http4k
