Rust Web Programming: https://tobiweissmann.gumroad.com/l/gztncx
This repository contains chapter-wise Rust code examples for the Rust Web Programming MiniBook.
The examples follow the book's TaskTracker journey:
- Rust web foundations
- HTTP essentials and routing
- Building APIs with Axum
- Validation and error handling
- Middleware and security basics
- Persistence with SQLx and Postgres
- Authentication with JWT
- Redis caching and background work
- Real-time APIs with WebSockets and SSE
- Frontend integration
- Testing and quality
- Production deployment checklist
- Rust stable
- Cargo
- Docker and Docker Compose for the Postgres and Redis chapters
cd chapter-03-axum-api
cargo runThen test:
curl http://127.0.0.1:3000/health
curl http://127.0.0.1:3000/tasks./scripts/check-all.sh- Chapters 1-5 and 9-12 are designed to run without external services.
- Chapter 6 needs Postgres.
- Chapter 8 can run with or without Redis. If Redis is unavailable, the example falls back gracefully.
- These examples are intentionally small and teaching-focused. For a paid production starter kit, combine the patterns into one cohesive app with stricter config, observability, migrations, CI/CD, and deployment docs.