Day 2: Building Apps

Yesterday we saw most of the pieces we’ll need to build a link shortener, and today we’ll put those pieces together to build the first version of it, called Petite.

Today we’ll also look at basic front-end tasks with Webmachine and related libraries as we build a web UI for Petite. You’ll see how to integrate HTML templating into a Webmachine resource with mustache.erl,[37] a Mustache template implementation for Erlang.

Webmachine makes it easy to handle different types of incoming data to support both human and API use of the same resource. You’ll discover that representations of incoming data and the resource itself are important parts of Webmachine.

Shortening Links

We’ll apply what we learned yesterday to build ...

Get Seven Web Frameworks in Seven Weeks now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.