Author Archives: jason or

Creating a RESTful Service in Chicago Boss

Here’s an end-to-end REST implementation in Chicago Boss. Not sure has anyone a nice concise guide out there so hope this is useful. Overview A very simple model (Book[title, author, insertTimestamp, updateTimestamp]) CRUD implementation where             Create is a POST request             Read is a […]

ChicagoBoss – The requested template (“src/view/blaindex.{dtl,html,txt,js,jade,eex}”) was not found. Additionally, no handler was found for processing 404 errors. You probably want to modify bla.routes to prevent errors like this one.

I wasted a lot of time with the above exception. Editing the routes file to no avail. The problem here is most likely with the controller. The problem in my case was that IntelliJ added below by default %% API -export([]). where it should have been %% API -compile(export_all). Simple one, but wasted a lot […]

Vagrantfile for an Erlang/MySql project using Chef

Vagrant is a great tool for getting a virtualized server up and running The following is a cookbook and Vagrantfile for setting up a 64bit ubuntu box. I had a lot of workarounds to get an environment successfully set up, hopefully this will ease the pain Install Vagrant and VirtualBox Create cookbook folder for chef Clone […]

bcrypt install trouble

Bcrypt is a useful library for erlang encryption. It is used by the Colosimo sample app I had some trouble installing bcrypt. When i typed the following in terminal: erl crypto:start(). bcrypt:start(). I got the following exception: ** exception error: undefined function bcrypt:start/0 or the following from ChicagoBoss: {undef, [{bcrypt,start,[],[]}, To get it working, start […]

ChicagoBoss Project Structure

ChicagoBoss is really neat. One thing I’m swinging toward though in relation to project layout is to keep the ChicagoBoss-<Version#> at the dir structure. A lot of the tutorials talk about renaming to ‘ChicagoBoss’. I’d see the benefits of keeping the version number as follows: Easier to upgrade Easier to test with different versions (including […]

Welcome

simple blog documenting issue solutions and gotcha’s from someone trying to get up to speed on erlang