wenbinye/admin-gen

There is no license information available for the latest version (dev-master) of this package.

CRUD Admin Generator

Installs: 11

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 1

Open Issues: 0

Language:JavaScript

dev-master 2015-08-17 07:34 UTC

This package is auto-updated.

Last update: 2024-11-15 18:12:52 UTC


README

create crud files by:

$ sqlite3 cache/demo.db < data/schema.sql
$ chmod 666 cache/demo.db
$ ./bin/cli gen all customers

nginx configuration example:

server {
    listen 80;
    root /path/to/admin-gen/public;
    index index.php index.html index.htm;
    try_files $uri $uri/ @rewrite;

    location @rewrite {
        rewrite ^/(.*)$ /index.php?_url=/$1;
    }
    
    location ~ \.php {
        fastcgi_pass 127.0.0.1:9000;
        fastcgi_index /index.php;
        include fastcgi_params;
        fastcgi_split_path_info       ^(.+\.php)(/.+)$;
        fastcgi_param PATH_INFO       $fastcgi_path_info;
        fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    }
}

This project is inspired by CRUD Admin Generator