An open source tool to generate a complete backend from a MySql database
crud-admin-generator.com
crud-admin-generator.com
https://github.com/jeffknupp/sandman
From the Readme: "Given a legacy database, sandman not only gives you a REST API, it gives you a beautiful admin page." It uses Python and SQLAlchemy and supports a good selection of databases.
So I bought a ~$100 product, I think it was CodeCharge Studio from YesSoftware. I was skeptic, but I had no option.
Turned out great. I was ready in a day and it looked very good. You could generate the admin site in multiple languages and it was very easy to use.
Example: "Thanks for sending this in. I'm busy right now but will look into it later. If I haven't responded in a week or two, do me a favor and ping this thread."
I'm using it for an application I'm working on now (and working out little kinks) and will be releasing it shortly.
[1] https://github.com/nkiraly/DBSteward [2] http://kohanaframework.org/
It shouldn't be too hard to do.
See "Foreign key support" in MyISAM
Also, in my experience a lot of people do not always use the underlying database constraints even in InnoDB.
Not sure if that was the intent of the authors, but just so that others may understand that it could be more than just "PHP land". Might be a little closer to "MySQL land".
Being as they can certainly make for very rude surprises, when you discover them by chance.
Double check that :).
A quick look at the code and it seems to treat all content as text - you either get a text input or a text area.
Even without any php Models defining the type of a field, the MySQL column types provide a reasonable amount of information about the type which can be translated (as phpMyAdmin/etc do) into more logical form fields.
The tool generates a base administrator and you can add all functionalities that you want.
Is this designed to work with any particular framework?
The used framework is Silex (http://silex.sensiolabs.org/)
Thank you.
An alternative approach would be to supply custom classes to the generator at the time that it generates.
For example.
Class CustomerTable extends AdminTable {
$hiddenfields = [ "created_date" , "password" ];
$validation = [ "email" => "validateEmail"];
function validateEmail($validate_data) {
return validEmailAddress($validate_data);
}
}
Then the user can place this class somewhere specific or register it with the generator in some way, and when the generator runs it will use this class and not overwrite changes.Like
$adminGenerator->use("customer","CustomerTable");
This way you can keep using the generator even after you have done extensive modification to the tables and code.Also, can I regenerate only parts of the interface (after changes to the database, for instance)?
https://www.ruby-toolbox.com/categories/rails_admin_interfac...