ndc-suez
v1.0.1
Published
Generate standard ndc UI
Downloads
170
Maintainers
Readme
Code Generator for NDC (Note de Calcul)
To use this package the xlsx file config for NDC is mandatory. It can generate both the angular application and the .Net classes for the api endpoint
How to use it
Angular
To create the angular app, run the following in your project:
ng g ndc-suez:m --name <note_name>
This will generate an angular module with a component with lazy load configuration.
.NET
To generate the code for the api endpoint :
ng g ndc-suez:ndc-net-module --name <note_name>
Example
ng g ndc-suez:ndc-net-module --name OndeorMbrLe3
? Where is the excel file : OMBR_2.5_specs_le3.xlsx
CREATE OndeorMbrLe3/OndeorMbrLe3Parameters.cs (15154 bytes)
CREATE OndeorMbrLe3/OndeorMbrLe3Dto.cs (29036 bytes)
CREATE OndeorMbrLe3/OndeorMbrLe3ResultDto.cs (11460 bytes)
CREATE OndeorMbrLe3/Constants.json (19972 bytes)
CREATE OndeorMbrLe3/OndeorMbrLe3Export.cs (34394 bytes)
CREATE OndeorMbrLe3/OndeorMbrLe3Controller.cs (5066 bytes)
Warning!
The excel file need to be properly formatted.
That's it!