Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Create new module from scratch #3917


User avatar
0
bilalhaidar created

Hi, I would like to add a new functionality to my app in a sense I will need to build Manager classes and use repositories. The module might or might not need to expose AppServices.

How shall I organize this new module? Shall it contain also layers like Core, AppService, etc. Or what? How to add dependencies, etc.

If you have a sample module you have created so that I could have a look at it.

Thank you Bilal


4 Answer(s)
  • User Avatar
    0
    strix20 created

    A module is typically defined as a class library, so in your case if you are building multiple layers, you should have multiple modules.

  • User Avatar
    0
    bilalhaidar created

    So, for the AppService I create myAppService, for Core I create MyCore, etc.?

    As for dependencies, for the MyCore, I make it depend on Core layer in the template + any other modules needed?

    Thanks

  • User Avatar
    0
    jdavis01 created

    Is there a step by step documentation for module from scratch like the phonebook example?

    I think for me the best approach would be to make the abp blog sample a module..

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @jdavis01,

    There is no step by step documentation but you can check this github sample project <a class="postlink" href="https://github.com/aspnetboilerplate/modular-todo-app">https://github.com/aspnetboilerplate/modular-todo-app</a>.