Skip to content

A VSCode extension to easily create module in a domain driven development and Hexagonal architecture

License

Notifications You must be signed in to change notification settings

libeo-tech/ddd-hexagonal-generator

Repository files navigation

Features

This Extension allow automatic generation of modules using Domain Driven Development Hexagonal Architecture Or DDH for short

Available command are as follow :

Name Condition Description
Create DDH Folders None Creates the following:
  • 🟢 module folder
    • 🟢 core folder
      • 🟢 application folder
        • 🟢 commands folder
        • 🟢 queries folder
        • 🟢 application file
      • 🟢 domain folder
    • 🟢 infrastructure folder
      • 🟢 infrastructure file
    • 🟢 interface folder
      • 🟢 interface file
    • 🟢 module file
Create DDH Command Folder must be named "commands" Creates the following:
  • module folder
    • core folder
      • application folder
        • commands folder
          • 🟢 command folder
            • 🟢 command file
            • 🟢 command handler file
            • 🟢 port file
        • queries folder
        • application file
      • domain folder
    • infrastructure folder
      • infrastructure file
    • interface folder
      • interface file
    • module file
Create DDH Query Folder must be named "queries" Creates the following:
  • module folder
    • core folder
      • application folder
        • commands folder
        • queries folder
          • 🟢 query folder
            • 🟢 query file
            • 🟢 query handler file
            • 🟢 port file
        • application file
      • domain folder
    • infrastructure folder
      • infrastructure file
    • interface folder
      • interface file
    • module file
Create DDH Entity Folder must be named "domain"
  • module folder
    • core folder
      • application folder
        • commands folder
        • queries folder
        • application file
      • domain folder
        • 🟢 entity folder
          • 🟢 entity file
    • infrastructure folder
      • infrastructure file
      • 🟢 infrastructure folder
        • 🟢 adapter file
        • 🟢 repository file
    • interface folder
      • interface file
    • module file

To use the extension just right click on the source folder where you want to create your module/entity/query/command and select the command in the menu

The created files are not added to the parent files, please add them manually for now.

Known Issues

Try to use the command/query/entity command in a well organized folder (Preferably one generated with the module command) or else it might create the files at the wrong place !

About

A VSCode extension to easily create module in a domain driven development and Hexagonal architecture

Resources

License

Stars

Watchers

Forks

Packages

No packages published