BeepBeep obligatory blog demo

December 12, 2008

This code shows how to build a simple application with BeepBeep. It demonstrates a simple application flow and the use of filters for authentication.

* UPDATE * The blog demo is not included with the beepbeep source code

Download it here: Blog Demo

It’s completely standalone, so all you need is Erlang and some curiousity.

Setup

- Download the code
- CD into the beebeep_blog_example directory
- run make
- run ./start-server.sh
- point your browser to http://localhost:8000

Since BeepBeep generates the core code and structure for you, the only code I needed to write for this app was:

- src/main_controller.erl – The controller for displaying and creating posts
- src/login_controller.erl – The controller for handling login
- the templates for the app, located in the template directory
- Oh, and the simple blog_db, used to store blog entries in-memory

Go on…give it a try!

Scrape the Wayback machine with this little script

August 17, 2007