Over the course of the following days/weeks, I will walk you through creating a URL shortening service with Zotonic, the Erlang web framework. I'm doing this in a series of article. This first article outlines the steps of the tutorial.
over the course of the following days/weeks, I will walk you through creating a URL shortening service with Zotonic, the Erlang web framework. For this tutorial I chose building a URL shortening service because:
- It's cool to have your own service... spice up your tweets with your customized urls :)
- More importantly, creating such a service is a well-defined topic which touches on a lot of different subjects, and it can be gradually extended.
This tutorial is divided into a series of articles.
- Part 1: setting up Zotonic, creating an empty site, running it and poke into Zotonic's belly using the Erlang shell.
- Part 2: defining the data model for the redirection service in an erlang module.
- Part 3: creating a dispatch rule for the short URLS and the webmachine resource for handling the redirect.
- Part 4: creating the homepage: a form to create a shortened URL, and a JSON API to let external apps create URLs as well.
- Part 5: adding a tab in the admin to show the created urls.
- Part 6: allowing users to sign up and log in to manage their created URLs, view stats, etc.
After the first article has been published, you can find the source code online on github. For every article, I'll tag the repository so you can keep track of what has been added and changed.
That's it for now. See you back soon for part one: Setting up the Zotonic site.