Browse Source

Continue with the part 4

pull/20822/head
Halil İbrahim Kalkan 2 years ago
parent
commit
67c6570287
  1. BIN
      docs/en/tutorials/modular-crm/images/abp-studio-add-new-empty-module-dialog.png
  2. BIN
      docs/en/tutorials/modular-crm/images/abp-studio-add-new-empty-module.png
  3. BIN
      docs/en/tutorials/modular-crm/images/abp-studio-modular-crm-with-two-modules.png
  4. BIN
      docs/en/tutorials/modular-crm/images/file-system-odering-module-initial-folder.png
  5. 29
      docs/en/tutorials/modular-crm/part-04.md

BIN
docs/en/tutorials/modular-crm/images/abp-studio-add-new-empty-module-dialog.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

BIN
docs/en/tutorials/modular-crm/images/abp-studio-add-new-empty-module.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

BIN
docs/en/tutorials/modular-crm/images/abp-studio-modular-crm-with-two-modules.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

BIN
docs/en/tutorials/modular-crm/images/file-system-odering-module-initial-folder.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

29
docs/en/tutorials/modular-crm/part-04.md

@ -16,10 +16,35 @@
In this part, you will build a new module for placing orders and install it to the main CRM application.
## Creating The Module
## Creating an Empty Module
We have used the *DDD Module* template for the Product module. We will use the *Empty Module* template for the Ordering module in this part.
Right-click the `modules` folder on the *Solution Explorer* panel, and select the *Add* -> *New Module* -> *Empty Module* command:
TODO
![abp-studio-add-new-empty-module](images/abp-studio-add-new-empty-module.png)
That command opens a dialog to define the properties of the new module:
![abp-studio-add-new-empty-module-dialog](images/abp-studio-add-new-empty-module-dialog.png)
Set `ModularCrm.Ordering` as the *Module name*, leave the *Output folder* as is and click the *Create* button. It will create the new `ModularCrm.Ordering` module under the `modules` folder in the *Solution Explorer*:
![abp-studio-modular-crm-with-two-modules](images/abp-studio-modular-crm-with-two-modules.png)
Since we've created an empty module, it is really empty. If you open the `modules/modularcrm.ordering` in your file system, you can see the initial files:
![file-system-odering-module-initial-folder](images/file-system-odering-module-initial-folder.png)
## Creating the Module Packages
In this section, we will create packages under the Ordering module. The Products module was well layered based on Domain Driven Design principles. This time, we will keep the things very simple and will only create two packaged for the Ordering module:
* `ModularCrm.Ordering`: Contains all the module code without any layering. It will contains entities, database access code, services, controllers, UI pages and whatever we need to implement the *Ordering* module.
* `ModularCrm.Ordering.Contracts`: Contains the services and objects we want to share with other modules. `ModularCrm.Ordering` uses (and implements) this package.
> If your modules are relatively small, easy to maintain, they will only be used by your main application and you don't care about layering, you can create such a simple module structure.
### Creating the `ModularCrm.Ordering.Contracts` Package
s
Loading…
Cancel
Save