Usage: sh generate-model.sh -m <MODEL_NAME> -p <PROJECT_PATH>
Generate the model related objects in the Spring project
-m <MODEL_NAME> Specify the model name. For example, by specifing model as User, script will create UserController, UserFacade, etc.
-p <PROJECT_PATH> Specify the Spring project path, including the package.
Usage: sh init-spring-structure.sh <PROJECT_PATH>
Generate the spring project structure. It creates the folders like: /config, /controller, /facade, etc.
<PROJECT_PATH> Specify the Spring project path, including the package.
The templates folder just holds the prepared templates, which then is parsed by the template-parsers.sh script. The variables in the templates are declared as {SOME_VARIABLE}, which then is parsed and replaced by regex.
The template-parsers.sh script declares the functions, which are required for the generate-model.sh script. It simply exports the parser functions.
Inside the functions, templates located in templates folder are parsed.