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
this script helps you generate a CRUD system for your project keeping it simple and compliant, with internal coding style standards
- 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
- Nestjs (soon)
- Express (soon)
- Nano Framework (soon)
python3 -m venv venvsource venv/bin/activatepip3 install -r requirements.txtpython3 cli.py{
"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
│ ├── 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