As of January 10, 2013, Cato now supports the Play Framework v2.x.
As of March 31, 2014, Cato now supports Play Framework 2.x JSON code.
Cato is a CRUD generator that can be used to generate files for any programming language or tool. For instance, you can generate any of these CRUD-based files, and many more:
- The Play Framework
- Drupal form files
- Java model classes
- Java JSP files
- Spring Framework XML files
- Ruby on Rails files
- CakePHP files
- SQL statements for any language
- Anything else you can imagine that can be driven off your database tables
All you have to do is tell Cato where your database is, define some template files (as needed), then point and click to generate whatever file you want that can be based off your database definition.
This is essentially the same process used in the "generate" processes of Ruby on Rails and CakePHP, but it is (a) independent of programming language, and (b) available through a web GUI.
Once installed, using Cato is easy to use. From the main screen:
- Select the database table you'd like to generate CRUD from.
- Select the table fields you want to include.
- Select the template for the output you want to generate.
- Click the "Generate" button.
You can see a short demo in action at this URL:
The INSTALL file describes the process of installing Cato, which I've also tried to make as painless as possible.
As you saw in that demo, Cato generates its CRUD output based on template files. As a result, if you can define the template file for what you want, you can easily generate CRUD-based output.
Many template files are included as examples. You can use those, or just use them as examples to create your own template files.
The templating language is based on the Smarty template project. I've documented this in the README-TEMPLATES file, and you can learn much more about Smarty templates at this URL:
You can find more information about the Cato Project at this URL:
See the original Cato CRUD Generator video here:
See the "Rails-like Development for Drupal 7 Forms" video, featuring Cato, here:
See the "Play Framework 2 CRUD with Cato" video here:
The Name "Cato"
The name "Cato" comes from the character on the old Pink Panther movies. When I (Alvin Alexander) first started developing this project, I thought that this app should be an "assistant" to me when developing database applications. As soon as I thought of "assistant" I thought of Cato, Inspector Clouseau's trusty assistant.
This project was created by Alvin Alexander of http://alvinalexander.com