cod

codetron

A node tool to generate code for your apps

Showing:

Popularity

Downloads/wk

2

GitHub Stars

0

Maintenance

Last Commit

6yrs ago

Contributors

1

Package

Dependencies

9

Size (min+gzip)

492.4KB

License

GPL-3.0-or-later

Type Definitions

Tree-Shakeable

No?

Categories

Readme

CodeTron

A tool to generate code for your apps.

Usage

create a json file defining your project structure:

{
    "name": "My Project",
    "description": "Awesome project.",
    "recipes": [
        {
            "rid": "cakephp2-core"
        },
        {
            "rid": "cakephp2-cms",
            "config": {
                "appName": "Awesome CMS"
            }
        }
    ],
    "models": [
        {
            "name": "Foo",
            "table": "foo",
            "fields": [
                {
                    "name": "id",
                    "primaryKey": true,
                    "type": "integer"
                },
                {
                    "name": "field1",
                    "type": "string",
                    "required": true,
                    "label": "Field 1"
                },
                {
                    "name": "field2",
                    "type": "string",
                    "required": false,
                    "label": "Field 2"
                }
            ]
        }
    ]
}

then run codetron -i project.json and wait for the magic to happen :)

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100