开发者

Web application admin generators [closed]

开发者 https://www.devze.com 2023-02-20 02:18 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Over开发者_如何学运维flow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.

Closed 9 years ago.

Improve this question

Since Symfony 1.x's admin generator, I found this kind of tool really useful to prototype applications, show something very quickly to customers etc.

Now for Symfony2, admin generator does not seems to be a priority (see here and here)

Django's admin generator seems very interesting...

Which web application admin generator (any language / technology) would you recommend (pros / cons)?


Django's automatic admin app is excellent. Once you've written your models, it automatically creates a full-featured admin app around them where you can create, update and delete records. It's also extensible and customizable for just about whatever you need.

Here's a pretty good overview about it. Django (and python) is intuitive and satisfying to work with -- I highly recommend that you set it up and play with it and see how well it works.


Updated 2017

Agile UI (a successor of atk4.3) is an MIT based PHP UI Component library. It gives your application nice looking, consistent User Interface without you have to write any HTML and works with any PHP framework or application.

Demo: http://ui.agiletoolkit.org/demos/index.php

The reason I think this is better than a built-in generator:

  • Almost no dependencies, works with any framework or PHP app.
  • Can work with SQL or NoSQL, relies on Agile Data.
  • Stylish, modern and responsive. (Semantic UI)
  • Interactive. "Form" uses JS to submit, display in-line validation. "CRUD" uses modal windows, pagination and QuickSearch.
  • Extensible. Need charts? https://github.com/atk4/chart.
  • Open-source

To build a minimalistic application admin you only need 15 lines of PHP code:

<?php
$app = new \atk4\ui\App('My App');
$app->initLayout(new \atk4\ui\Layout\Admin());

$db = \atk4\data\Persistence::connect($DSN);

class User extends \atk4\data\Model {
    public $table = 'user';
    function init() {
        parent::init();

        $this->addField('name');
        $this->addField('email', ['required'=>true]);
        $this->addField('password', ['type'=>'password']);
    }
}
$app->layout->add(new \atk4\ui\CRUD())
  ->setModel(new User($db));

Result:

Web application admin generators [closed]


Personally, I have found Yii's scaffolding is the best there is. Quick First Application

What I truly loved:

  • Controlled creation of files. Yii provides an interface to create all required files, called Gii.

  • You have the ability to generate your model classes based on the database model.

  • You have the ability to generate CRUD operations for all your model classes (Action methods for your controller class).

The generated scaffolding includes: Pagination, Searching, Advanced Searching, Listening, Inserting and Updating includes validation out of the box, Deleting. And all of the interface is ajax driven.


For Ruby on Rails: Here is some discussion on SO

But ActiveScaffold's home page at the moment is still talking about Rails 2.3, so you may want to read past the accepted answer and check the others to see if there are newer ones.

Rails Admin looks to be actively developed and has good pedigree (having been a Google Summer of Code project mentored by big names in the Rails community, so I'd start there if I were looking.


I can recommend CakePHP scaffolding, where you can also add admin routing. Nice for you is that you can stay on PHP, which you also used for Symphony. Be warned, you might get addicted to Cake ;)


something a lot more powerful for CakePHP is https://github.com/josegonzalez/cake_admin, little bit of a Django rip-off :)


I like sprox, for Python. Although I have not found it particularly useful for production, it can help a lot in terms of prototyping and testing -- its simplicity is its strength here, enhancing Python's own strengths.


Padrino has "Padrino Admin":

http://www.padrinorb.com/guides/padrino-admin

While not as popular as Rails, it's built around the excellent Sinatra DSL.


For Rails applications, Rails Admin with CanCan is the best solution as of now. These are very actively maintained and supports Rails 3.0. With CanCan, you can customize access on models. So that you can easily set multiple level of admins/authors. Previously I have used ActiveScaffold for 2.0 application but it doesn't seem to support newest Rails.

0

精彩评论

暂无评论...
验证码 换一张
取 消