Skip to content
rhaen edited this page Sep 26, 2010 · 5 revisions

This is what helped me to get started with mojo, perhaps it helps you, too. ;-)

First of all, you need to install Mojolicious

  • sudo -s ‘curl -L cpanmin.us | perl – Mojo’

Easily start your new Mojolicious project:

  • mojolicious generate help
    gives you a list of options.
  • mojolicious generate app
    generates “my_mojolicious_app”
  • mojolicious generate app hello_world
    generates “hello world”

You then find a directory structure with a preconfigured application.
The first thing you will need is to start your mojolicious application:
script/[your_app]
where [your_app] is the name of your application.

script/hello_world

in the example above.

Now follow the Guides on Github.

Ah, wait: Debug Messages

Before you head off to the Guides, turn on debug messages in the console where you run your script/hello_world..
Normally they get logged in log/development.log
Just delete (or rename, preferably) log/ and you get the messages displayed in your console.

I love this one. Delete something and have more thereafter.

Clone this wiki locally