@ -1,2 +1,2 @@ |
|||
## abp.op |
|||
## abp.io |
|||
Source code of the official web site: https://abp.io |
|||
|
|||
@ -0,0 +1,20 @@ |
|||
using System; |
|||
using System.Linq; |
|||
using Volo.Utils.SolutionTemplating.Files; |
|||
|
|||
namespace Volo.Utils.SolutionTemplating.Building |
|||
{ |
|||
public static class ProjectBuildContextExtensions |
|||
{ |
|||
public static FileEntry GetFile(this ProjectBuildContext context, string filePath) |
|||
{ |
|||
var file = context.Files.FirstOrDefault(f => f.Name == filePath); |
|||
if (file == null) |
|||
{ |
|||
throw new ApplicationException("Could not find file: " + filePath); |
|||
} |
|||
|
|||
return file; |
|||
} |
|||
} |
|||
} |
|||
@ -1,22 +1,7 @@ |
|||
using System; |
|||
using System.Linq; |
|||
using Volo.Utils.SolutionTemplating.Files; |
|||
|
|||
namespace Volo.Utils.SolutionTemplating.Building |
|||
namespace Volo.Utils.SolutionTemplating.Building |
|||
{ |
|||
public abstract class ProjectBuildPipelineStep |
|||
{ |
|||
public abstract void Execute(ProjectBuildContext context); |
|||
|
|||
protected FileEntry GetFile(ProjectBuildContext context, string filePath) |
|||
{ |
|||
var file = context.Files.FirstOrDefault(f => f.Name == filePath); |
|||
if (file == null) |
|||
{ |
|||
throw new ApplicationException("Could not find file: " + filePath); |
|||
} |
|||
|
|||
return file; |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,177 @@ |
|||
# VoloDocs |
|||
|
|||
## What is VoloDocs? |
|||
|
|||
VoloDocs is a cross-platform web application that allows you to easily create beautiful documentation and build developer communities. It simplifies software documentation with the help of GitHub integration. You use the power of GitHub for versioning, hosting of your docs. You let your users to edit a document. |
|||
|
|||
## Main Features |
|||
|
|||
- Serves documents from your GitHub repository. |
|||
- Supports Markdown / HTML document formatting. |
|||
- Supports versioning (integrated to GitHub releases). |
|||
- Supports multiple projects. |
|||
- Allows users to edit a document on GitHub. |
|||
- Cross-platform; deployable to Windows / Linux / macOS. |
|||
|
|||
## GitHub Repository |
|||
|
|||
It's free & open-source. You can browse VoloDocs source-code and contribute on GitHub: |
|||
|
|||
https://github.com/abpframework/abp/tree/master/modules/docs |
|||
|
|||
## Download |
|||
|
|||
You can download the VoloDocs release from the following links: |
|||
|
|||
http://apps.abp.io/VoloDocs/VoloDocs.win-x64.zip - **Windows 64 bit** |
|||
|
|||
http://apps.abp.io/VoloDocs/VoloDocs.win-x86.zip - **Windows 32 bit** |
|||
|
|||
http://apps.abp.io/VoloDocs/VoloDocs.osx-x64.zip - **MacOS** |
|||
|
|||
http://apps.abp.io/VoloDocs/VoloDocs.linux-x64.zip - **Linux** |
|||
|
|||
Notice that, all installations are self-contained deployments. It means all the required third-party dependencies along with the version of .NET Core is included. So you don't need to install any .NET Core SDK / Runtime. |
|||
|
|||
## Folder Structure |
|||
|
|||
When you extract the `VoloDocs.*.zip` file, you will see a `Web` folder and a `Migrator` folder. The `Web` folder contains the website files and `Migrator` contains the application to build your database. Before publishing your website, you need to create a new database or update your existing database to the latest. If this is the first time you install VoloDocs, `Migrator` will create a new database for you, otherwise it updates to the latest version. The only setting you need to configure, is the `ConnectionString` which is located in the `appsettings.json` file. See the next section to learn how to configure your VoloDocs application. |
|||
|
|||
## Steps by Step Deployment |
|||
|
|||
- ### Database Migration |
|||
|
|||
To update your existing database or create your initial database, go to `Migrator` folder in your VoloDocs directory. |
|||
|
|||
Open `appsettings.json` in your text editor and set your database connection string. If you don't know how to write the connection string for your database system, you can check out https://www.connectionstrings.com/. |
|||
|
|||
After you set your connection string, run `Migrate.bat` for Windows platform and `VoloDocs.Migrator` for other operating systems. That's it now configure your website. |
|||
|
|||
- ### Configuring Website |
|||
|
|||
Go to `Web` folder in your VoloDocs directory. Open `appsettings.json` in your text editor. Set your connection string (same as in the `Migrator`'s `appsettings.json`). Set `title` of your website. This will be written on the left-upper corner of your website. That's it! Now you can publish your website. |
|||
|
|||
If you want to run |
|||
|
|||
- ### Deploying Website |
|||
|
|||
In the previous step, you created or updated your database. Ensure that your database exists on the specified connection string. |
|||
|
|||
- #### Deploying to IIS |
|||
|
|||
- Move `Web` folder to your `wwwroot ` folder. |
|||
- Rename `Web` folder to `VoloDocs` (Now you have `C:\inetpub\wwwroot\VoloDocs`). |
|||
- The `VoloDocs` application pool is being created automatically. Open **Application Pools** and double click `VoloDocs` application pool and set |
|||
- **.NET CLR version**: `No Managed Code` |
|||
- **Managed pipeline mode**: `Integrated` |
|||
|
|||
 |
|||
|
|||
|
|||
|
|||
- If you get the below error, it means don't have the hosting bundle installed on the server. See [this document](https://docs.microsoft.com/aspnet/core/host-and-deploy/iis/#install-the-net-core-hosting-bundle) to learn how to install it or [download Hosting Bundle](https://www.microsoft.com/net/permalink/dotnetcore-current-windows-runtime-bundle-installer) and run on your server. |
|||
|
|||
``` |
|||
Handler "aspNetCore" has a bad module "AspNetCoreModuleV2" in its module list using IIS |
|||
``` |
|||
|
|||
- Further information about hosting VoloDocs check out [Microsoft's official document for hosting ASP.NET Core application on IIS](https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/iis). |
|||
|
|||
- #### Deploying to Azure |
|||
|
|||
Microsoft has a good document on how to deploy your ASP.NET Core web app to Azure App Service. We recommend you to read this document https://docs.microsoft.com/en-us/azure/app-service/app-service-web-get-started-dotnet. |
|||
|
|||
- #### Running the Application From Command Line |
|||
|
|||
Alternatively you can run the application from command line, navigate to `VoloDocs\Web` folder and run `VoloDocs.Web.exe` for Windows or `VoloDocs.Web` for MacOS / Linux. |
|||
|
|||
- ### First Run |
|||
|
|||
To start the website, navigate to your address (as configured in the previous section). |
|||
|
|||
When you first open the website, you need to create a project. |
|||
|
|||
#### Creating a Project |
|||
|
|||
Go to the following address to create project |
|||
|
|||
- `http://<yourwebsite>/Account/Login?returnUrl=/Docs/Admin/Projects` |
|||
|
|||
##### Default credentials |
|||
|
|||
To login the admin side, use the following credentials: |
|||
|
|||
* **Username**: `admin` |
|||
|
|||
* **Password**: `1q2w3E*` |
|||
|
|||
##### An example project definition |
|||
|
|||
Here's a sample project information that uses GitHub source. |
|||
|
|||
We will configure the VoloDocs to show ABP Framework's documentation that's stored in GitHub. |
|||
|
|||
Here's the link to ABP Framework GitHub docs folder: |
|||
|
|||
https://github.com/abpframework/abp/tree/master/docs/en |
|||
|
|||
|
|||
|
|||
* **Name**: `ABP Framework` |
|||
|
|||
* **Short name**: `abp` |
|||
|
|||
* **Format**: `markdown` |
|||
|
|||
* **Default document name**: `Index` |
|||
|
|||
* **Navigation document name**: `docs-nav.json` ([see the sample navigation](https://github.com/abpframework/abp/blob/master/docs/en/docs-nav.json)) |
|||
|
|||
* **Minimum version**: *leave empty* *(hides the previous versions)* |
|||
|
|||
* **Main web site URL**: `/` |
|||
|
|||
* **Latest version branch name**: leave empty () |
|||
|
|||
* **GitHub root URL**: `https://github.com/abpframework/abp/tree/{version}/docs/en/` |
|||
|
|||
* **GitHub access token**: [see how to retrieve GitHub access token](#retrieving-github-access-token) |
|||
|
|||
* **GitHub user agent**: [see how to learn your GitHub username](#learn-your-github-username) |
|||
|
|||
 |
|||
|
|||
##### Retrieving GitHub Access Token |
|||
|
|||
To create a personal access token in GitHub, you need to visit the **Settings** of the user account and under **Developer settings** you will find **Personal access tokens**. Select **Generate new token**, enter in a name as the Token description and enable the repo checkbox. Alternatively, to enter generate new token, browse to https://github.com/settings/tokens/new. |
|||
|
|||
###### Generate Token for Public Repositories |
|||
|
|||
To access public repositories, check `public_repo` under the `repo` section. This will enable VoloDocs to access your public GitHub repositories. Click `Generate Token` button on the bottom of the page. |
|||
|
|||
 |
|||
|
|||
###### Generate Token for Private Repositories |
|||
|
|||
To access public repositories, check all items under the `repo` section. This will enable VoloDocs to access your private GitHub repositories. Click `Generate Token` button on the bottom of the page. |
|||
|
|||
 |
|||
|
|||
###### Learn Your GitHub Username |
|||
|
|||
To learn your GitHub username, click on your profile picture on the top-right corner of the GitHub page. You will see your username right after the text "Signed in as ..." |
|||
|
|||
 |
|||
|
|||
|
|||
|
|||
After you save the project, go to root website address and you will see your documentation. |
|||
|
|||
`http://<yourwebsite>/documents` |
|||
|
|||
### Any Issues? |
|||
|
|||
If you encounter any problem or issues about installation, usage or report a bug, follow the link: |
|||
|
|||
https://github.com/abpframework/abp/issues/new |
|||
|
|||
@ -0,0 +1,26 @@ |
|||
# Nightly Builds |
|||
|
|||
All framework & module packages are deployed to MyGet every night in weekdays. So, you can use or test the latest code without waiting the next release. |
|||
|
|||
## Configure Visual Studio |
|||
|
|||
> Requires Visual Studio 2017+ |
|||
|
|||
1. Go to `Tools > Options > NuGet Package Manager > Package Source`. |
|||
2. Click the green `+` icon. |
|||
3. Set `ABP Nightly` as *Name* and `https://www.myget.org/F/abp-nightly/api/v3/index.json` as the *Source* as shown below: |
|||
 |
|||
4. Click the `Update` button. |
|||
5. Click the `OK` button to save changes. |
|||
|
|||
## Install Package |
|||
|
|||
Now, you can install preview / nightly packages to your project from Nuget Browser or Package Manager Console. |
|||
|
|||
 |
|||
|
|||
1. In the nuget browser, select "Include prereleases". |
|||
2. Change package source to "All". |
|||
3. Search a package. You will see prereleases of the package formatted as `(VERSION)-preview(DATE)` (like *v0.16.0-preview20190401* in this sample). |
|||
4. You can click to the `Install` button to add package to your project. |
|||
|
|||
|
After Width: | Height: | Size: 7.5 KiB |
|
After Width: | Height: | Size: 8.7 KiB |
|
After Width: | Height: | Size: 8.7 KiB |
|
After Width: | Height: | Size: 58 KiB |
|
After Width: | Height: | Size: 153 KiB |
|
After Width: | Height: | Size: 146 KiB |
|
After Width: | Height: | Size: 144 KiB |
|
After Width: | Height: | Size: 154 KiB |
|
After Width: | Height: | Size: 6.4 KiB |
|
After Width: | Height: | Size: 6.3 KiB |
|
After Width: | Height: | Size: 23 KiB |
|
After Width: | Height: | Size: 29 KiB |
|
After Width: | Height: | Size: 6.3 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 5.9 KiB |
@ -0,0 +1,174 @@ |
|||
# VoloDocs |
|||
|
|||
## 什么是VoloDocs? |
|||
|
|||
VoloDocs是一个跨平台的应用程序,帮助你简单的创建良好的文档与构建开发人员社区. 它借助Github集成简化了软件文档. 使用Github的强大功能进行版本控制,托管文档,并允许用户编译文档. |
|||
|
|||
## 主要功能 |
|||
|
|||
- 集成Github从仓库提供文档. |
|||
- 支持Markdown/HTML文档格式. |
|||
- 支持版本控制 (集成Github release). |
|||
- 支持多个项目. |
|||
- 允许用户在Github上编辑文档. |
|||
- 跨平台,可部署到Windows/Linux/macOS. |
|||
|
|||
## Github源码仓库 |
|||
|
|||
它是免费并且开源的. 你可以查看VoloDocs源码,我们也欢迎PR: |
|||
|
|||
https://github.com/abpframework/abp/tree/master/modules/docs |
|||
|
|||
## 下载 |
|||
|
|||
你可以在下面的链接下载VoloDocs release版: |
|||
|
|||
http://apps.abp.io/VoloDocs/VoloDocs.win-x64.zip - **Windows 64 bit** |
|||
|
|||
http://apps.abp.io/VoloDocs/VoloDocs.win-x86.zip - **Windows 32 bit** |
|||
|
|||
http://apps.abp.io/VoloDocs/VoloDocs.osx-x64.zip - **MacOS** |
|||
|
|||
http://apps.abp.io/VoloDocs/VoloDocs.linux-x64.zip - **Linux** |
|||
|
|||
上面所有的release都是自包含运行时的部署文件. 包含所有的第三方依赖与.Net Core Runtime,所以你不需要安装任何.Net Core SDK/Runtime. |
|||
|
|||
## 目录结构 |
|||
|
|||
解压 `VoloDocs.*.zip` 文件, 你会得到一个 `Web` 文件夹和 `Migrator` 文件夹. `Web` 文件夹中包含网站文件, `Migrator` 文件夹中包含构建数据库的应用程序. 在发布网站之前需要创建数据库或将现有的数据库更新到最新迁移. 如果这是你第一次安装VoloDocs, `Migrator` 会创建一个新数据库. 如果是升级已有的VoloDocs则会将数据库升级到最新的迁移. 使用 `Migrator` 你需要在 `appsettings.json` 文件中更改 `ConnectionString`. 参阅下一节了解如何配置VoloDocs应用程序. |
|||
|
|||
## 逐步部署 |
|||
|
|||
- ### 数据库迁移 |
|||
|
|||
进入 `Migrator` 目录中创建或更新数据库. |
|||
|
|||
打开 `appsettings.json` 文件设置连接字符串,如果你不清楚如何编写连接字符串,可以查看 https://www.connectionstrings.com/. |
|||
|
|||
设置连接字符串后运行 `Migrate.bat` 如果是Linux或MacOS运行 `DotNet VoloDocs.Migrator.dll` 命令. |
|||
|
|||
- ### 配置网站 |
|||
|
|||
进入 `Web` 目录下的VoloDocs文件夹. 打开 `appsettings.json` 文件设置连接字符串(与 `Migrator` 的 `appsettings.json` 相同). 你也可以为网站设置你想要的 `title`,它会显示在网站的左上角. 做完这些现在可以发布网站了. |
|||
|
|||
- ### 部署网站 |
|||
|
|||
在上一步我们创建/更新了数据库(确保数据库链接字符串正确). |
|||
|
|||
- #### 部署到IIS |
|||
|
|||
- 移动 `Web` 文件夹到你的 `wwwroot ` 文件夹中. |
|||
- 重命名 `Web` 文件夹为 `VoloDocs` (现在我们有了 `C:\inetpub\wwwroot\VoloDocs`). |
|||
- 创建网站 `VoloDocs` 会自动创建相同名称的应用程序池. 打开 **应用程序池** 并双击 `VoloDocs` 应用程序池做以下设置 |
|||
- **.NET CLR 版本**: `无托管代码` |
|||
- **托管管道模式**: `集成` |
|||
|
|||
 |
|||
|
|||
|
|||
|
|||
- 如果发生发生发现错误,表示未在服务器安装托管捆绑包. 请参阅文档 [this document](https://docs.microsoft.com/aspnet/core/host-and-deploy/iis/#install-the-net-core-hosting-bundle) 了解如何安装或[下载托管捆绑包](https://www.microsoft.com/net/permalink/dotnetcore-current-windows-runtime-bundle-installer). |
|||
|
|||
``` |
|||
Handler "aspNetCore" has a bad module "AspNetCoreModuleV2" in its module list using IIS |
|||
``` |
|||
|
|||
- 关于托管VoloDocs的更多信息,请参阅 [在IIS上托管ASP.NET Core应用程序的微软官方文档](https://docs.microsoft.com/zh-cn/aspnet/core/host-and-deploy/iis). |
|||
|
|||
- #### 部署到Azure |
|||
|
|||
微软有一篇关于将ASP.NET Core应用程序部署到Azure App Service的文档. 我们建议你此[文档](https://docs.microsoft.com/en-us/azure/app-service/app-service-web-get-started-dotnet). |
|||
|
|||
- #### 使用命令行运行应用程序 |
|||
|
|||
你可以从命令行运行应用程序,进入 `VoloDocs\Web` 文件夹并运行 `VoloDocs.Web.exe`,如果是Linux或MacOS运行 `DotNet VoloDocs.Web.dll` 命令. |
|||
|
|||
- ### 首次运行 |
|||
|
|||
打开浏览器导航到你的网址. |
|||
|
|||
首次运行网站,我们需要创建一个项目. |
|||
|
|||
#### 创建项目 |
|||
|
|||
跳转到以下网址创建项目 |
|||
|
|||
- `http://<yourwebsite>/Account/Login?returnUrl=/Docs/Admin/Projects` |
|||
|
|||
##### 默认凭据 |
|||
|
|||
使用管理员身份登陆到管理后台,用户名密码如下: |
|||
|
|||
* **用户名**: `admin` |
|||
|
|||
* **密码**: `1q2w3E*` |
|||
|
|||
##### 示例项目的定义 |
|||
|
|||
以下是一个使用了Github源的示例项目信息. |
|||
|
|||
配置VoloDocs展示存储在Github仓库中ABP Framework的文档. |
|||
|
|||
这是ABP Framework文档在Github的链接: |
|||
|
|||
https://github.com/abpframework/abp/tree/master/docs/zh-Hans |
|||
|
|||
|
|||
|
|||
* **名称**: `ABP Framework` |
|||
|
|||
* **简称**: `abp` |
|||
|
|||
* **格式**: `markdown` |
|||
|
|||
* **默认文档名称**: `Index` |
|||
|
|||
* **文档导航名称**: `docs-nav.json` ([参见示例](https://github.com/abpframework/abp/blob/master/docs/zh-Hans/docs-nav.json)) |
|||
|
|||
* **最小版本**: *留空* *(隐藏之前的版本)* |
|||
|
|||
* **主网站网址**: `/` |
|||
|
|||
* **最新版本分支名称**: 留空 |
|||
|
|||
* **GitHub链接**: `https://github.com/abpframework/abp/tree/{version}/docs/zh-Hans/` |
|||
|
|||
* **GitHub访问令牌**: [参见如何创建Github访问令牌](#retrieving-github-access-token) |
|||
|
|||
* **GitHub用户名称**: [参见如何找到自己的Github用户名称](#learn-your-github-username) |
|||
|
|||
 |
|||
|
|||
##### 创建访问令牌 |
|||
|
|||
在Github页右上角找到 `Settings`,然后在左侧导航中点击 `Developer Settings`,在这里选择 `Personal access tokens`. 点击创建新token,输入名称与描述并勾选repo复选框. 如果已有访问令牌但已经忘记,可以选择[重新生成](https://github.com/settings/tokens/new). |
|||
|
|||
###### 创建仅授权访问公共仓库的token |
|||
|
|||
想要仅授权访问公共仓库,仅勾选 `public_repo` 就可以了,然后点击页面底部的 `Generate Token` 按钮完成操作. |
|||
|
|||
 |
|||
|
|||
###### 创建可访问私有仓库的token |
|||
|
|||
想要授权访问私有仓库,勾选 `repo` 下的所有选项. 然后点击页面底部的 `Generate Token` 按钮完成操作. |
|||
|
|||
 |
|||
|
|||
###### 查看你的Github用户名称 |
|||
|
|||
在Github页面右上角点击头像图片,"Signed in as ..." 后面就是你的用户名称 |
|||
|
|||
 |
|||
|
|||
|
|||
|
|||
保存项目后转到网站根地址,你会看到文档已经正常显示. |
|||
|
|||
`http://<yourwebsite>/documents` |
|||
|
|||
### 发现问题? |
|||
|
|||
如果你在安装,使用时遇到问题或者发现bug,请发起issues与我们联系: |
|||
|
|||
https://github.com/abpframework/abp/issues/new |
|||
@ -0,0 +1,54 @@ |
|||
# 微服务演示,项目状态和路线图 |
|||
|
|||
在ABP vNext上的[第一个公告](https://cn.abp.io/blog/abp/Abp-vNext-Announcement)之后,我们对代码库进行了很多改进([GitHub存储库](https://github.com/abpframework/abp)上的1100多次提交).我们已经创建了功能,示例,文档等等.在这篇文章中,我想告诉你一些新闻和项目的状态. |
|||
|
|||
## 微服务演示解决方案 |
|||
|
|||
ABP框架的主要目标之一是提供[创建微服务解决方案的便利基础设施](https://cn.abp.io/documents/abp/latest/Microservice-Architecture). |
|||
|
|||
我们一直在努力开发微服务解决方案演示.初始版本已完成并[文档化](https://cn.abp.io/documents/abp/latest/Samples/Microservice-Demo).该示例解决方案旨在演示一个简单而完整的微服务解决方案; |
|||
|
|||
- 具有多个独立的,可自我部署的**微服务**. |
|||
- 多个**Web应用程序**,每个都使用不同的API网关. |
|||
- 使用[Ocelot](https://github.com/ThreeMammals/Ocelot)库开发了多个**网关** / BFF(后端为前端(Backend for Frontends)). |
|||
- 使用[IdentityServer](https://identityserver.io/)框架开发**身份验证服务**.它也是一个带有必要UI的SSO(单点登录)应用程序. |
|||
- 有**多个数据库**.一些微服务有自己的数据库,而一些服务/应用程序共享一个数据库(以演示不同的用例). |
|||
- 具有不同类型的数据库:**SQL Server**(使用**Entity Framework Core** ORM)和**MongoDB**. |
|||
- 有一个**控制台应用程序**来显示通过身份验证使用服务的最简单方法. |
|||
- 使用[Redis](https://redis.io/)进行**分布式缓存**. |
|||
- 使用[RabbitMQ](https://www.rabbitmq.com/)进行服务到服务(service-to-service)的**消息传递**. |
|||
- 使用[Docker](https://www.docker.com/)和[Kubernates](https://kubernetes.io/)**部署**并运行所有服务和应用程序. |
|||
- 使用[Elasticsearch](https://www.elastic.co/products/elasticsearch)和[Kibana](https://www.elastic.co/products/kibana)存储和可视化日志(使用[Serilog](https://serilog.net/)编写). |
|||
|
|||
有关解决方案的详细说明,请参阅[其文档](https://cn.abp.io/documents/abp/latest/Samples/Microservice-Demo). |
|||
|
|||
## 改进/功能 |
|||
|
|||
我们已经开发了许多功能,包括**分布式事件总线**(与RabbitMQ集成),**IdentityServer4集成**以及几乎所有功能的增强.我们不断重构和添加测试,以使框架更稳定和生产就绪.它正在[快速增长](https://github.com/abpframework/abp/graphs/contributors). |
|||
|
|||
## 路线图 |
|||
|
|||
在第一个稳定版本(v1.0)之前还有很多工作要做.您可以在GitHub仓库上看到[优先的积压项目](https://github.com/abpframework/abp/issues?q=is%3Aopen+is%3Aissue+milestone%3ABacklog). |
|||
|
|||
根据我们的估计,我们计划在2019年第二季度(可能在五月或六月)发布v1.0.所以,不用等待太长时间了.我们也对第一个稳定版本感到非常兴奋. |
|||
|
|||
我们还将完善[文档](https://cn.abp.io/documents/abp/latest),因为它现在还远未完成. |
|||
|
|||
第一个版本可能不包含SPA模板.但是,如果可能的话,我们想要准备一个简单些的.SPA框架还没有确定下来.备选有:**Angular,React和Blazor**.请将您的想法写为对此帖的评论. |
|||
|
|||
## 中文网 |
|||
|
|||
中国有一个大型的ABP社区.他们创建了一个中文版的abp.io网站:https://cn.abp.io/. 他们一直在保持更新.感谢中国的开发人员,特别是[Liming Ma](https://github.com/maliming). |
|||
|
|||
## NDC {London} 2019 |
|||
|
|||
很高兴作为合作伙伴参加[NDC {London}](https://ndc-london.com/)2019 .我们已经与许多开发人员讨论过当前的ASP.NET Boilerplate和ABP vNext,我们得到了很好的反馈. |
|||
|
|||
我们还有机会与[Scott Hanselman](https://twitter.com/shanselman)和[Jon Galloway](https://twitter.com/jongalloway)交谈.他们参观了我们的展位,我们谈到了ABP vNext的想法.他们喜欢新的ABP框架的功能,方法和目标.在twitter上查看一些照片和评论: |
|||
|
|||
 |
|||
|
|||
## 跟上步伐 |
|||
|
|||
* 您可以标星并关注**GitHub**存储库:https://github.com/abpframework/abp |
|||
* 您可以关注官方**Twitter**帐户获取新闻:https://twitter.com/abpframework |
|||
|
After Width: | Height: | Size: 477 KiB |
@ -0,0 +1,33 @@ |
|||
# 领取驱动设计 |
|||
|
|||
## 什么是DDD? |
|||
|
|||
ABP框架提供了**基础设施**使基础**DDD**的开发更易实现. DDD在[维基百科中的定义](https://zh.wikipedia.org/wiki/%E5%9F%9F%E9%A9%B1%E5%8A%A8%E5%BC%80%E5%8F%91)如下: |
|||
|
|||
> **领域驱动设计(DDD)** 是一种通过将实现连接到持续进化的模型来满足复杂需求的软件开发方法. 领域驱动设计的前提是: |
|||
> |
|||
> - 把项目的主要重点放在核心领域和领域逻辑上 |
|||
> - 把复杂的设计放在领域模型上 |
|||
> - 发起技术专家和领域专家之间的创造性协作,以迭代方式完善解决特定领域问题的概念模型 |
|||
|
|||
### 分层 |
|||
|
|||
ABP框架遵循DDD原则和模式去实现分层应用程序模型,该模型由四个基本层组成: |
|||
|
|||
- **表示层**: 为用户提供接口. 使用*应用层*实现与用户交互. |
|||
- **应用层**: 表示层与领域层的中介,编排业务对象执行特定的应用程序任务. 使用应用程序逻辑实现用例. |
|||
- **领域层**: 包含业务对象以及业务规则. 是应用程序的核心. |
|||
- **基础设施层**: 提供通用的技术功能,支持更高的层,主要使用第三方类库. |
|||
|
|||
## 内容 |
|||
|
|||
* **领域层** |
|||
* [实体与聚合根](Entities.md) |
|||
* 值对象 |
|||
* [仓储](Repositories.md) |
|||
* 领域服务 |
|||
* 规约 |
|||
* **应用层** |
|||
* [应用服务](Application-Services.md) |
|||
* [数据传输对象(DTO)](Data-Transfer-Objects.md) |
|||
* 工作单元 |
|||
@ -0,0 +1,25 @@ |
|||
# 每日构建 |
|||
|
|||
所有框架和模块包都每晚都部署到MyGet. 因此你可以使用或测试最新的代码,而无需等待下一个版本. |
|||
|
|||
## 在Visual Studio配置 |
|||
|
|||
> 需要Visual Studio 2017以上 |
|||
|
|||
1. 在VS中打开: `工具 > 选项 > NuGet 包管理器 > 程序包源` |
|||
2. 单击绿色的`+`图标 |
|||
3. 在底部输入名称(ABP Nightly)和并粘贴URL(`https://www.myget.org/F/abp-nightly/api/v3/index.json`)到源上. |
|||
 |
|||
3. 单击`更新`按钮 |
|||
4. 点击`确定`按钮保存 |
|||
|
|||
## 安装包 |
|||
|
|||
现在, 你可以从**管理NuGet包** 或 **程序包管理器控制台** 将预览/夜间程序包安装到你的项目中. |
|||
|
|||
 |
|||
|
|||
1. 在nuget浏览中,选择"包括预发行版". |
|||
2. 将包源更改为`全部`. |
|||
3. 搜索nuget包. 你将看到包的预发布格式为`(VERSION)-preview(DATE)` (如本示例中的**v0.16.0-preview20190401**). |
|||
4. 你可以单击`安装`按钮将包添加到项目中. |
|||
|
After Width: | Height: | Size: 7.5 KiB |
|
After Width: | Height: | Size: 8.7 KiB |
|
After Width: | Height: | Size: 8.7 KiB |
|
After Width: | Height: | Size: 58 KiB |
|
After Width: | Height: | Size: 153 KiB |
|
After Width: | Height: | Size: 146 KiB |
|
After Width: | Height: | Size: 144 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 40 KiB |
|
After Width: | Height: | Size: 45 KiB |
|
After Width: | Height: | Size: 3.2 KiB |
|
After Width: | Height: | Size: 154 KiB |
|
After Width: | Height: | Size: 77 KiB |
|
After Width: | Height: | Size: 53 KiB |
|
After Width: | Height: | Size: 12 KiB |