Start developing web applications using Erlang and Mochiweb.
The purpose of all this, aside from arousing your curiosity, is to provide you with a getting started pack and allow you to go a step further in the Erlang web application sphere.
I invite you to download the example application (as illustrated in the video pure-js.com/assets/stickyNotes.zip) in order for you to understand all the pieces of the puzzle and to venture behind the scene.
Just keep in mind that stickyNotes is a one shot application that I’ve developed from scratch with the unique aim of illustrating the video example.
Having said that, any comment or suggestion is always welcome, especially about ‘struct.erl’, a module that I’ve created when I was learning the language in order to play with the tree structure resulting from the mochijson2 decode function.
We are using it in our mainstream development and I’m still wondering if I might have missed something important with regard to the Erlang distro or Mochiweb itself.
In order to install this stuff on your system and assuming that Erlang is properly setup on your box, just follow these steps:
1) Download stickyNotes and extract the archive in your home directory
2) cd to stickyNotes dir and compile the code : make clean && make
3) Start the application and initialize the db from the Erlang console (only once):
4) Browse the following address 127.0.0.1:8000
Super easy isn’t ?