Application startup template

Introduction

ABP solution is Visual Studio project which provides a layered structure based on the Domain Driven Design (DDD) best practices. This document explains how to create a new solution, the structure of the solution and the aims of the projects inside the solution.

Creating a new ABP Commercial solution

There are 2 ways of creating a new ABP Commercial solution. You can use the ABP CLI or ABP Suite.

Creating solution via ABP CLI

If you have not yet installed ABP CLI, you need to install it with the following command. To check if you already have it, write abp to the command line.

dotnet tool install -g Volo.Abp.Cli

To create your solution, go to the directory where you want to create in and type the following command:

abp new Acme.BookStore -t app-pro
  • Acme.BookStore is the project name. Your Visual Studio Solution, .sln file will be named as Acme.BookStore.sln. The projects inside the root folder and all the namespaces will have the prefix Acme.BookStore.*. You can give different project names like onlyBookStore or Acme.Retail.BookStore. You can use single level, two-level or three-level naming.

  • -t or --template is the template name. For commercial apps, use app-pro.

  • To discover other CLI new project options type:

    abp help new
    

Note that, if you want to uninstall ABP CLI tool, you can write:

dotnet tool uninstall -g Volo.Abp.Cli

Or to update / reinstall, you can write :

dotnet tool update -g Volo.Abp.Cli

Specify the UI framework

The template provides multiple UI frameworks:

  • mvc: ASP.NET Core MVC UI with Razor Pages (default)
  • blazor: Blazor UI
  • blazor-server: Blazor Server UI
  • angular: Angular UI
  • maui-blazor: MAUI Blazor UI

Use -u or --ui option to specify the UI framework:

abp new Acme.BookStore -t app-pro -u angular

Specify the database provider

The template supports the following database providers:

  • ef: Entity Framework Core (default)
  • mongodb: MongoDB

Use -d or --database-provider option to specify the database provider:

abp new Acme.BookStore -t app-pro -d mongodb

Creating solution via ABP Suite

ABP Suite allows you to create a new ABP solution.

If you have not installed ABP Suite, see how to install ABP Suite.

To start ABP Suite, see how to start ABP Suite.

To create a new solution, see how to create a new solution.

What's next?

Was this page helpful?

Please make a selection.

To help us improve, please share your reason for the negative feedback in the field below.

Please enter a note.

Thank you for your valuable feedback!

Please note that although we cannot respond to feedback, our team will use your comments to improve the experience.

In this document
Community Talks

Building Modular Monolith Applications Using .NET and ABP Framework

17 Oct, 17:00
Online
Watch the Event
Mastering ABP Framework Book
Mastering ABP Framework

This book will help you gain a complete understanding of the framework and modern web application development techniques.

Learn More