3.0.1 • Published 2 years ago

@c.i/create-mvp-repo v3.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

create-mpv-repo

There's a requirement to build a whole monorepo consisting of backend, frontend and db scripts. So here comes the tool.

This tool requires a schema which is a json file, that specifies the entities. The entities will then be created as database tables and CRUD resources for backend.

Below is a dummy schema.json file which specifies few entities.

{
    "entities": {
        "person": {
            "name": {
                "type": "varchar(50)"
            },
            "gender": {
                "type": "varchar(50)"
            },
            "age": {
                "type": "int"
            }
        },
        "dog": {
            "name": {
                "type": "varchar(20)"
            }
            "about": {
                "type": "text",
            }
        }
    }
}

Usage

Run create-mpv-repo help to list all the available commands and options.