Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

M E T L I F E
E \         E \
T   \       T   \
L     M E T L I F E
I     E     I     E
F     T     F     T
M E T L I F E     L
  \   I       \   I
    \ F         \ F
      M E T L I F E

EZ CLI

this script helps you generate a CRUD system for your project keeping it simple and compliant, with internal coding style standards

Features

  • Generates a controller, service, repository and routes
  • Generates a test for each of the above
  • Appends new modules to Program.cs
  • Easy to use command line interface
  • JSON schema for entity definiton [Entity.json to Entity.cs]
  • Pick your output folder
  • Add Class Prefix and subfix names
  • C# Net Core

Roadmap

  • Nestjs (soon)
  • Express (soon)
  • Nano Framework (soon)

Create virtual environment

python3 -m venv venv

Run virtual environment

source venv/bin/activate

Installation

pip3 install -r requirements.txt

Usage

python3 cli.py

Entity example

{
  "module": "Customer",
  "fields": [
    {
      "name": "FirstName",
      "type": "string",
      "size": 50
    },
    {
      "name": "LastName",
      "type": "string",
      "size": 50
    },
    {
      "name": "Email",
      "type": "string",
      "size": 100
    },
    {
      "name": "PhoneNumber",
      "type": "string",
      "size": 15
    },
    {
      "name": "DateOfBirth",
      "type": "DateTime"
    },
    {
      "name": "IsActive",
      "type": "bool"
    }
  ]
}

Output

── output
│   ├── Customer
│   │   ├── Controllers
│   │   │   └── controller.cs
│   │   ├── Models
│   │   │   └── entity.cs
│   │   ├── Repositories
│   │   │   └── repository.cs
│   │   ├── Services
│   │   │   └── service.cs
│   │   └── Tests
│   │       ├── test_controller.cs
│   │       ├── test_entity.cs
│   │       ├── test_repository.cs
│   │       └── test_service.cs
│   └── Program.cs

About

Generate Internal code tools with static templates.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages