Open Closed

How to add new Abp module in existing Abp app-pro template? #4295


User avatar
0
yim.tim created

I would like to add new Abp module into the existing Abp app-pro to separate the business logic. I cannot found the procedure in the web and I execute abp create abp module into the existing App application (which created before using app-pro template).

How to add an new Abp module to existing Angular in app-pro template without impact existing changes?

The following is the file difference found.

The following is the procedure I tried.

  1. Execute the command "abp new DNS --with-source-code --template app-pro --ui angular --separate-identity-server --theme leptonx-lite -database-provider ef --mobile react-native --database-management-system SqlServer --no-random-port" in project working folder "D:\DNS"
  2. Execute the command "abp new CRS --with-source-code --template module --add-to-solution-file" in project working folder "D:\DNS"
  3. angular/angular.json and angular/package.json change are override.
  • ABP Framework version: v6.0.2
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

3 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Both app-pro and module may contain angular directory. You should use different folders for them.

  • User Avatar
    0
    yim.tim created

    Ok, I have created a existing Abp web project with Abp multi-tier and Angular web.

    I would like to add an new Abp module to the above existing created Abp web project? How can I do it? any procedure can provide?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You can create a modules folder in your existing project. Add new modules source in it.

    same with abp get-source

Made with ❤️ on ABP v9.1.0-preview. Updated on December 10, 2024, 06:38