A web framework that makes common things simple, and uncommon things possible.
Have you ever been coding in PHP and felt that there has just got to be a better way? Or have had a look at Rails and other similar frameworks and felt they just restrict you too much? Well look no futher - Salad has come to your rescue!
Salad is a web framework that is designed to make battle weary PHP programmers feel at home in a powerhouse Ruby environment.
Salad's key aim is to mix the simplicity/flexibility of writing applications in PHP, with the power and ninja like beauty of Ruby.
Please note: This tutorial has only been tested on Ubuntu and assumes you have Mysql installed.
To install Salad run the following command:
gem install salad
salad generate_app foo cd foo salad init_database salad start_web_server
this will create a skeleton application, create a mysql database called 'foo_development' and then boot up a development web server.
Please note: in order to initialize the database you might need to edit the 'database.conf.rb' file.
If you go to http://localhost:3000 (and everything has worked) you should see the message "It works!".
Next we'll create a primitive blog, by running the following commands:
salad generate_list posts *title:string *body:text --search title --page_size 10 --add_or_edit_form --deleter --viewer salad migrate_database
You should now be able to use your blog by going to http://localhost:3000/posts.
To find out more have a look at the API section (though this is still work in progress).
Think you've found a bug? Then report it here.
Salad is licensed under the MIT License.