Version
Language

There are multiple versions of this document. Pick the options that suit you best.

UI
Database
Tiered

Getting Started

This document assumes that you prefer to use Blazor as the UI framework and MongoDB as the database provider. For other options, please change the preference on top of this document.

Create a New Project

Use the new command of the ABP CLI to create a new project:

abp new Acme.BookStore -u blazor -d mongodb --separate-identity-server

You can use different level of namespaces; e.g. BookStore, Acme.BookStore or Acme.Retail.BookStore.

  • --separate-identity-server argument is used to separate the identity server application from the API host application. If not specified, you will have a single endpoint on the server.

ABP CLI document covers all of the available commands and options.

Alternatively, you can create and download projects from ABP Framework website by easily selecting the all the options from the page.

The Solution Structure

The solution has a layered structure (based on the Domain Driven Design) and contains unit & integration test projects. See the application template document to understand the solution structure in details.

MongoDB Transactions

The startup template disables transactions in the .MongoDB project by default. If your MongoDB server supports transactions, you can enable the it in the YourProjectMongoDbModule class's ConfigureServices method:

Configure<AbpUnitOfWorkDefaultOptions>(options =>
{
  options.TransactionBehavior = UnitOfWorkTransactionBehavior.Auto;
});

Or you can delete that code since Auto is already the default behavior.

Next Step

Was this page helpful?
Please make a selection.
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
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.