Generating Travel Impressions code from the model
The JSON representation of the last model spiral is generated in the Model Concepts tool and then copied to the model.json
file that is placed in the empty travel_impressions
folder of the new app. The project’s model code is generated by dartling_gen
; this is step two in our schema. In the Run | Manage Launches of Dart Editor, create a dartling_gen.dart
command-line launch pointing to the following script in the dartling_gen
project:
bin/dartling_gen.dart
In the Script arguments, enter the following argument:
--genall projectpath domain model
For the travel_impressions
project, the arguments are as follows:
--genall c:/dart/travel_impressions travel impressions
The arguments are similar for the project path in Linux: /home/dart/travel_impressions
.
The --genall
argument indicates that the complete project will be generated. The c:/dart/travel_impressions
argument replaces the projectpath
parameter—a path to the project’s folder that contains...