Server: Racket now available
I’m happy to announce that my latest ebook, Server: Racket—Practical Web Programming with the Racket HTTP Server is now available!
Server: Racket is a series of tutorials illustrating an array of common topics and problems in web development. My aim is to jump-start your web development in Racket. If you’re new to Racket and want to see how it can be useful for web work, or if you’ve tried to get into Racket for the web and didn’t really get anywhere, I’ve written the book for you.
(I should say that the ebook isn’t really an introduction to Racket. I assume you have some knowledge of the system and/or interest in learning it.)
Table of contents
Part 1: HTTP à la Racket
HTTP requests and responses entirely within Racket. No external systems, and using only modules that come standard with Racket.
- The servlet: In the beginning there was
- Routes: URL-based dispatching
- Error handling
- Working with JSON data
- HTML templates
- Processing HTML forms
- Handling AJAX requests
Part 2: Interacting with other systems
In part 2, I talk about how to use Racket with specialized systems (primarily, databases) and use special-purpose packages that aren’t included in a standard Racket installation.
- Using a relational database (db, sql)
- Session management (redis)
- Environment variables (dotenv)
- JSON Schema validation (argo)
- Models (object-relational mapping) (racquel)
- Sending HTTP requests (http)
- Caching with memcached (memcached)
- Database migrations with Phinx
- Racket and Docker
- A CRUD-style HTTP API
- Deploying a Racket site behind a proxy server