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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access