Welcome to Mach
Mach is a modern C++ web framework designed to make building web applications simple, structured, and productive.
This guide will take you from installing Mach to running your first application.
What You’ll Build
Section titled “What You’ll Build”By the end of this guide, you’ll have created and run a simple Mach application with your first HTTP endpoint:
#include <mach/mach.hpp>
int main() { mach::AppBuilder builder; auto app = builder.build();
app.mapGet("/", [] { return mach::ok("Hello, World!"); });
app.run();}You’ll learn how to:
- Install Mach and its required tools.
- Create a new Mach project.
- Understand the structure of a Mach application.
- Define your first endpoint.
- Build and run your application.
Next, you’ll install Mach and prepare your system for development.