This tutorial explains how to start ABP from scratch with minimal dependencies. You generally want to start with a **[startup template](https://abp.io/Templates)**.
``AppModule`` is a good name for the startup module for an application.
``AppModule`` 是应用程序启动模块的好名称.
### Initialize The Application
### 初始化应用程序
The next step is to bootstrap the application using the startup module created above:
下一步是使用上面创建的启动模块引导应用程序:
````C#
using System;
@ -62,11 +62,11 @@ namespace AbpConsoleDemo
````
``AbpApplicationFactory`` is used to create the application and load all modules taking ``AppModule`` as the startup module. ``Initialize()`` method starts the application.
The application above does nothing. Let's create a service does something:
上面的应用程序什么都不做, 让我们创建一个服务做一些事情:
````C#
using System;
@ -85,9 +85,9 @@ namespace AbpConsoleDemo
````
``ITransientDependency`` is a special interface of ABP that automatically registers the service as transient (see [dependency injection document](Dependency-Injection.md)).
While it's enough for this simple code example, it's always suggested to create scopes in case of directly resolving dependencies from ``IServiceProvider`` (TODO: see DI documentation).