Build Web Applications with the Kemal and Amber Frameworks

Ruby’s most explosive growth came from Rails, the outstanding web framework. As Crystal is a direct descendant of Ruby, it’s not surprising that developers have poured energy into Crystal web frameworks. If you read through the company testimonies, you’ll see that many of them use Kemal.

The Built-in Web Server

Crystal’s standard library has a module HTTP for basic web techniques such as static file handling, logging, error-handling, form data, websockets, and so on. It also contains a built-in web server, the class HTTP::Server. You can set that up in just a few lines of code, and see the foundations of a running web server:

 require ​"http/server" ...

Get Programming Crystal now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.