|
1 | 1 | # Single Layer Application Solution Template |
2 | 2 |
|
3 | | -## Introduction |
4 | | - |
5 | 3 | This template provides a simple solution structure with a single project. This document explains that solution structure in details. |
6 | 4 |
|
7 | | -### The Difference Between the Application Solution Templates |
8 | | - |
9 | | -ABP's [Layered Application Solution Template](../layered-web-application) provides a well-organized and layered solution to create maintainable business applications based on the [Domain Driven Design](../../framework/architecture/domain-driven-design) (DDD) practices. However, some developers find this template a little bit complex for simple and short-term applications. The single-layer application template has been created to provide a simpler development model for such applications. This template has the same functionality, features and modules on runtime with the [Layered Application Solution Template](../layered-web-application) but the development model is minimal and everything is in a single project (`.csproj`). |
10 | | - |
11 | | -## How to Start with It? |
12 | | - |
13 | | -You can use the [ABP CLI](../../cli) to create a new project using this startup template. Alternatively, you can generate a CLI command for this startup template from the [Get Started](https://abp.io/get-started) page. In this section, we will use the ABP CLI. |
14 | | - |
15 | | -Firstly, install the ABP CLI if you haven't installed it before: |
16 | | - |
17 | | -```bash |
18 | | -dotnet tool install -g Volo.Abp.Studio.Cli |
19 | | -``` |
20 | | - |
21 | | -Then, use the `abp new` command in an empty folder to create a new solution: |
22 | | - |
23 | | -```bash |
24 | | -abp new Acme.BookStore -t app-nolayers |
25 | | -``` |
26 | | - |
27 | | -* `Acme.BookStore` is the solution name, like *YourCompany.YourProduct*. You can use single-level, two-level or three-level naming. |
28 | | -* In this example, the `-t` (or `--template`) option specifies the template name. |
29 | | - |
30 | | -### Specify the UI Framework |
| 5 | +## Getting Started |
31 | 6 |
|
32 | | -This template provides multiple UI frameworks: |
33 | | - |
34 | | -* `mvc`: ASP.NET Core MVC UI with Razor Pages (default) |
35 | | -* `blazor`: Blazor UI |
36 | | -* `blazor-server`: Blazor Server UI |
37 | | -* `angular`: Angular UI |
38 | | -* `none`: Without UI (for HTTP API development) |
39 | | - |
40 | | -Use the `-u` (or `--ui`) option to specify the UI framework while creating the solution: |
41 | | - |
42 | | -```bash |
43 | | -abp new Acme.BookStore -t app-nolayers -u angular |
44 | | -``` |
45 | | - |
46 | | -This example specifies the UI type (the `-u` option) as `angular`. You can also specify `mvc`, `blazor`, `blazor-server` or `none` for the UI type. |
47 | | - |
48 | | -### Specify the Database Provider |
49 | | - |
50 | | -This template supports the following database providers: |
51 | | - |
52 | | -- `ef`: Entity Framework Core (default) |
53 | | -- `mongodb`: MongoDB |
54 | | - |
55 | | -Use the `-d` (or `--database-provider`) option to specify the database provider while creating the solution: |
56 | | - |
57 | | -```bash |
58 | | -abp new Acme.BookStore -t app-nolayers -d mongodb |
59 | | -``` |
| 7 | +* Follow the [Getting Started guide](../../get-started/single-layer-web-application.md) to create a new solution using this startup solution template. |
| 8 | +* Follow the [TODO application tutorial](../../tutorials/todo/single-layer/index.md) to learn how to create a simple application with this startup solution template. |
60 | 9 |
|
61 | | -## Solution Structure |
| 10 | +## The Solution Structure |
62 | 11 |
|
63 | | -If you don't specify any additional options while creating an `app-nolayers` template, you will have a solution as shown below: |
| 12 | +If you created your solution with the default options, you will have a .NET solution as shown below: |
64 | 13 |
|
65 | 14 |  |
66 | 15 |
|
|
0 commit comments