Open Closed

How to customize startup template #495


User avatar
0
geffzhang created

How to customize startup template, the default template uses sqlserver, we usually use Postgresql, and I want to be able to customize a startup template instead of doing manual adjustments every time.


1 Answer(s)
  • User Avatar
    0
    alper created
    Support Team Director

    hi,

    See this doc that explains how to switch btw database providers https://docs.abp.io/en/abp/latest/Entity-Framework-Core-Other-DBMS

    There's a parameter in ABP CLI --template-source. This parameter allows you to generate a project from your own template. What you need to to do is, download a new app-pro template with the name MyCompanyName.MyProjectName Make your customizations on it. Then zip it. Put it in a folder like c:\MyAbpTemplates

    Create a new project according to your requirements based on your own template. abp new Acme.BookStore -t app-pro -u mvc --mobile none --database-provider ef --template-source c:\MyAbpTemplates

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