Skip to content

auttenbergo/SpringSH

Repository files navigation

SpringSH

Generate Model

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.

Generate Project Structure

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.

Templates Folder

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.

Template Parser Script

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages