Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/OrchardCoreCn/OrchardCore in…
Browse files Browse the repository at this point in the history
…to dev
  • Loading branch information
Tony Han committed Jun 30, 2020
2 parents c4b5497 + 20e9992 commit 3dd48f7
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 43 deletions.
36 changes: 18 additions & 18 deletions src/docs/guides/README.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
# Guides

Whatever you're building, these guides are designed to get you productive as quickly as possible using the latest Orchard Core project releases and techniques as recommended by the Orchard team.
无论您要构建的是什么,这些指南旨在使用Orchard团队推荐的最新Orchard Core项目版本和技术,使您尽快获得生产力。

## Getting Started Guides
## 入门指南

Designed to be completed in 15-30 minutes, these guides provide quick, hands-on instructions for building the "Hello World" of any development task with Orchard Core. In most cases, the only prerequisites are a .NET SDK and a text editor.
这些指南旨在在15-30分钟内完成,提供了快速,动手的指导,用于使用Orchard Core构建任何开发任务的“ Hello World”。在大多数情况下,唯一的先决条件是.NET SDK和文本编辑器。

- [Creating a Modular ASP.NET Core Application](create-modular-application-mvc/README.md)
- [Running Code on Startup](run-code-on-startup/README.md)
- [Customizing encoding settings](encoding-settings/README.md)
- [创建模块化ASP.NET Core应用程序](create-modular-application-mvc/README.md)
- [在启动时运行代码](run-code-on-startup/README.md)
- [自定义编码设置](encoding-settings/README.md)

### Orchard Core CMS Guides
### Orchard Core CMS 指南

These guides are specific to Orchard Core CMS
这些指南特定于Orchard Core CMS

- [Creating an Orchard Core CMS website](create-cms-application/README.md)
- [Adding a Menu Item to the Admin Navigation](add-admin-menu/README.md)
- [Installing Localization Files](install-localization-files/README.md)
- [Integrate facebook plugins](integrate-facebook-plugins/README.md)
- [Implement Full Text search](implement-fulltext-search/README.md)
- [创建一个Orchard Core CMS网站](create-cms-application/README.md)
- [将菜单项添加到管理导航](add-admin-menu/README.md)
- [安装本地化文件](install-localization-files/README.md)
- [集成Facebook插件](integrate-facebook-plugins/README.md)
- [实现全文搜索](implement-fulltext-search/README.md)

## Tutorials
## 教程

Designed to be completed in 2-3 hours, these guides provide deeper, in-context explorations of enterprise application development topics, leaving you ready to implement real-world solutions.
这些指南设计为在 2-3 小时内完成,可更深入地、深入地探索企业应用程序开发主题,使您能够随时实施实际的解决方案。

- [Building a decoupled website with Razor Pages](decoupled-cms/README.md)
- Building a Website from a Web Template (TBD)
- Implementing a Self-Service SaaS solution (TBD)
- [使用Razor页面构建解耦的网站](decoupled-cms/README.md)
- Web 模板构建网站 (TBD)
- 实施自助服务 SaaS 解决方案 (TBD)
52 changes: 27 additions & 25 deletions src/docs/guides/create-cms-application/README.md
Original file line number Diff line number Diff line change
@@ -1,63 +1,65 @@
# Creating an Orchard Core CMS website
# 创建一个 Orchard Core CMS 网站

In this guide you will setup Orchard Core as a Content Management System from a project template.
在本指南中,您将从项目模板将果园核心设置为内容管理系统。

## What you will need
## 您需要什么

- The current version of the .NET Core SDK. You can download it from here [https://www.microsoft.com/net/download/core](https://www.microsoft.com/net/download/core).
- A text editor and a terminal where you can type dotnet commands.
- NET Core SDK 的最新版本。你可以从这里下载 [https://www.microsoft.com/net/download/core](https://www.microsoft.com/net/download/core).
- 一个文本编辑器和终端,您可以在其中键入 dotnet 命令。

## Creating the projects
## 创建项目

There are different ways to create sites and modules for Orchard Core. You can learn more about them [here](../../getting-started/templates/README.md).
In this guide we will use our "Code Generation Templates".
有不同的方式为果园核心创建网站和模块。你可以在这里了解更多 [here](../../getting-started/templates/README.md).
在本指南中,我们将使用我们的"代码生成模板"。

You can install the latest released templates using this command:
您可以使用以下命令安装最新发布的模板:

```dotnet new -i OrchardCore.ProjectTemplates::1.0.0-*```

!!! note
To use the development branch of the template add `--nuget-source https://nuget.cloudsmith.io/orchardcore/preview/v3/index.json`
!!! 注意
要使用开发分支请添加 `--nuget-source https://nuget.cloudsmith.io/orchardcore/preview/v3/index.json`

Create an empty folder that will contain your site. Open a terminal, navigate to that folder and run this:
创建包含网站的空文件夹。打开终端,导航到该文件夹并运行此操作:

```dotnet new occms -n MySite```

This creates a new Orchard Core CMS project in a folder named `MySite`.
这将在名为 的文件夹中创建一个新的 Orchard Core CMS 项目。 `MySite`.

## Setting up the site
## 设置网站

The application has been created by the template, but it has not been setup yet.
应用程序已由模板创建,但尚未设置。

Run the application by executing this command:
通过执行此命令运行应用程序:

`dotnet run --project .\MySite\MySite.csproj`

!!! note
If you are using the development branch of the templates, run `dotnet restore .\MySite\MySite.csproj --source https://nuget.cloudsmith.io/orchardcore/preview/v3/index.json` before running the application
如果使用模板的开发分支,请先执行 `dotnet restore .\MySite\MySite.csproj --source https://nuget.cloudsmith.io/orchardcore/preview/v3/index.json` before running the application

Your application should now be running and contain the open ports:
应用程序现在应该正在运行,并包含打开的端口:

```
Now listening on: https://localhost:5001
Now listening on: http://localhost:5000
Application started. Press Ctrl+C to shut down.
```

Open a browser on <https://localhost:5001>, it should display the setup screen.
浏览器打开<https://localhost:5001>,它应该显示设置页面。 Open a browser on , it should display the setup screen.


为了建立一个网站与CMS的所有功能,将使用 _Blog_ 配方 。食谱包含配置果园核心网站的模块和步骤的列表。

In order to build a site with all the features of a CMS with are going to use the __Blog__ recipe. Recipes contains a list of modules and steps to configure an Orchard Core website.

Fill the form and select the __Blog__ recipe and __SQLite__ for the database.
填写表单并选择 __Blog__ 配方和 __SQLite__ 数据库.

![image](assets/setup-screen.jpg)

Submit the form. A few seconds later you should be looking at a Blog Site.
提交表单。几秒钟后,你应该看一个博客网站。

![image](assets/blog-home-page.jpg)

In order to configure it and start writing content you can go to <https://localhost:5001/admin>.
为了配置它并开始编写内容,您可以转到 <https://localhost:5001/admin>.

## Summary
## 总结

You just created an Orchard Core CMS powered blog engine.
您刚刚创建了一个Orchard Core CMS 驱动的博客引擎。

0 comments on commit 3dd48f7

Please sign in to comment.