Categories: ednet_core, model, code generation
Tool which translates the yaml representation of a model designed to DSL.
The yaml representation model.yaml expressing domain model with DSL must be copied in the project directory.
The JSON representation model.json expressing domain model with DSL must be copied in the project directory.
To generate domain model in selected flavor run the script for generation in bin/ednet_core_gen.dart:
- for single json model.json
--genall projectpath domain model
, or - for multiple models with yaml
--genall yamldomainpath output domain model1 model2... modeln
Example
--genall C:/Users/johns/dart/demo_projects demo projects
or
--genall example_domain output ednet user news
By running the main function in the bin/ednet_core_gen.dart file, a project, with its demo domain and projects model, will be generated in the project directory.
Credentials:
- Based on Dartling