Open Closed

Removing microservices #6787


User avatar
0
rishabh.shukla created

ABP Framework version: 8.0.3

UI Type: Angular

Database System: MongoDB

Tiered (for MVC) yes or Auth Server Separated (for Angular): yes

Steps to reproduce the issue: I need to remove the some out of box services that are provided by ABP microservices template. Please note that I do not need the authentication and authorization from ABP and need to add my own microservices. Please help me on how to do it?


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

    Hi

    I need to remove the some out of box services that are provided by ABP microservices template

    I'm assuming here that removing the language management service:

    1. Remove all Volo.Abp.LanguageManagement packages from the solution
    2. Update the AdministrationServiceDbContext to remove related code(entity, ConfigureLanguageManagement, namespce using etc..)
    3. Remove all module references, for example: typeof(LanguageManagementEntityFrameworkCoreModule),, typeof(LanguageManagementApplicationModule),
    4. Update AdministrationServiceEntityFrameworkCoreModule to remove options.ReplaceDbContext<ILanguageManagementDbContext>();
    5. Run the dotnet ef migrations add Remove_Language_Management command on the ...AdministrationService.EntityFrameworkCore folder to add a new migrations file
    6. Run the DbMigrator to apply the change.
    7. Update yarp.json file to remove LanguageManagement route config.
    8. Remove @volo/abp.ng.language-management from package.json and remove related code from Angular UI.

    Please note that I do not need the authentication and authorization from ABP

    You can add the AddAlwaysAllowAuthorization to the SharedHostingAspNetCoreModule class

    need to add my own microservices

    See https://docs.abp.io/en/commercial/latest/startup-templates/microservice/add-microservice

  • User Avatar
    0
    rishabh.shukla created

    It is not about the LanguageManagement Service. I need to remove the administration and identity microservice as I don't need them.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    The administration and identity are the basis of microservices, If you remove them, the microservice template will not work.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11