Orchard Core
果园核心
Orchard Core is a redevelopment of Orchard CMS on ASP.NET Core.
Orchard Core是[ASP.NET Core](https://www.asp.net/vnext)上[Orchard CMS](https://github.com/OrchardCMS/Orchard)的重新开发。
Orchard Core consists of two different targets:
Orchard Core由两个不同的目标组成:
-
Orchard Core Framework: An application framework for building modular, multi-tenant applications on ASP.NET Core.
-
Orchard Core Framework :用于在ASP.NET Core上构建模块化,多租户应用程序的应用程序框架。
-
Orchard Core CMS: A Web Content Management System (CMS) built on top of the Orchard Core Framework.
-
Orchard Core CMS :基于Orchard Core Framework构建的Web内容管理系统(CMS)。
It’s important to note the differences between the framework and the CMS. Some developers who want to develop SaaS applications will only be interested in the modular framework. Others who want to build administrable websites will focus on the CMS and build modules to enhance their sites or the whole ecosystem.
重要的是要注意框架和CMS之间的差异。一些想要开发SaaS应用程序的开发人员只对模块化框架感兴趣。其他想要构建可管理网站的人将专注于CMS并构建模块以增强其网站或整个生态系统。
[![加入聊天https://gitter.im/OrchardCMS/OrchardCore](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/OrchardCMS/OrchardCore? utm_source =徽章&utm_medium =徽章&utm_campaign = PR-徽章&的utm_content =徽章)
[![BSD-3-Clause License](https://img.shields.io/badge/license-BSD--3--Clause-blue.svg)](https://github.com/OrchardCMS/OrchardCore /斑点/主/ LICENSE)
Building Software as a Service (SaaS) solutions with the Orchard Core Framework
使用Orchard核心框架构建软件即服务(SaaS)解决方案
It’s very important to understand the Orchard Core Framework is distributed independently from the CMS on nuget.org. We’ve made some sample applications on https://github.com/OrchardCMS/OrchardCore.Samples that will guide you on how to build modular and multi-tenant applications using just Orchard Core Framework without any of the CMS specific features.
理解Orchard核心框架是独立于nuget.org上的CMS分发的,这一点非常重要。我们在https://github.com/OrchardCMS/OrchardCore.Samples上制作了一些示例应用程序,它们将指导您如何使用Orchard Core Framework构建模块化和多租户应用程序没有任何CMS特定功能。
One of our goals is to enable community-based ecosystems of hosted applications which can be extended with modules, like e-commerce systems, blog engines and more. The Orchard Core Framework enables a modular environment that allows different teams to work on separate parts of an application and make components reusable across projects.
我们的目标之一是实现托管应用程序的基于社区的生态系统,这些生态系统可以通过电子商务系统,博客引擎等模块进行扩展。 Orchard Core Framework支持模块化环境,允许不同的团队在应用程序的不同部分上工作,并使组件可以跨项目重用。
Building Website with Orchard Core CMS
使用Orchard Core CMS构建网站
Orchard Core CMS is a complete rewrite of Orchard CMS on ASP.NET Core. It’s not just a port as we wanted to improve the performance drastically and align as close as possible to the development models of ASP.NET Core.
Orchard Core CMS完全重写了ASP.NET Core上的Orchard CMS。它不仅仅是一个端口,因为我们希望大幅提高性能并尽可能地与ASP.NET Core的开发模型保持一致。
-
Performance. This might the most obvious change when you start using Orchard Core CMS. It’s extremely fast for a CMS. So fast that we haven’t even cared about working on an output cache module. To give you an idea, without caching Orchard Core CMS is around 20 times faster than the previous version.
-
性能。当您开始使用Orchard Core CMS时,这可能是最明显的变化。 CMS的速度非常快。如此之快,我们甚至都不关心在输出缓存模块上工作。为了给你一个想法,没有缓存Orchard Core CMS比以前的版本快20倍左右。
-
Portable. You can now develop and deploy Orchard Core CMS on Windows, Linux and macOS. We also have Docker images ready for use.
-
便携。您现在可以在Windows,Linux和macOS上开发和部署Orchard Core CMS。我们还准备好使用Docker镜像。
-
Document database abstraction. Orchard Core CMS still requires a relational database, and is compatible with SQL Server, MySQL, PostgreSQL and SQLite, but it’s now using a document abstraction (YesSql) that provides a document database API to store and query documents. This is a much better approach for CMS systems and helps performance significantly.
-
文档数据库抽象。 Orchard Core CMS仍然需要一个关系数据库,并且与SQL Server,MySQL,PostgreSQL和SQLite兼容,但它现在使用文档抽象(YesSql),它提供了一个文档数据库API来存储和查询文档。对于CMS系统来说,这是一种更好的方法,可以显着提高性能。
-
NuGet Packages. Modules and themes are now shared as NuGet packages. Creating a new website with Orchard Core CMS is actually as simple as referencing a single meta package from the NuGet gallery. It also means that updating to a newer version only involves updating the version number of this package.
-
NuGet套餐。模块和主题现在作为NuGet包共享。使用Orchard Core CMS创建新网站实际上就像引用NuGet库中的单个元软件包一样简单。这也意味着更新到更新版本只涉及更新此软件包的版本号。
-
Live preview. When editing a content item, you can now see live how it will look like on your site, even before saving your content. And it also works for templates, where you can browse any page to inspect the impact of a change on templates as you type it.
-
实时预览。在编辑内容项目时,您现在可以直观地看到它在您的网站上的样子,甚至在保存您的内容之前。它也适用于模板,您可以在其中浏览任何页面,以便在键入时检查更改对模板的影响。
-
Liquid templates support. Editors can safely change the HTML templates with the Liquid template language. It was chosen as it’s both very well documented (Jekyll, Shopify, …) and secure.
-
液体模板支持。编辑者可以使用Liquid模板语言安全地更改HTML模板。它被选中,因为它有很好的记录(Jekyll,Shopify,...)和安全。
-
Custom queries. We wanted to provide a way for developers to access all their data as simply as possible. We created a module that lets you create custom ad-hoc SQL, and Lucene queries that can be re-used to display custom content, or exposed as API endpoints. You can use it to create efficient queries, or expose your data to SPA applications.
-
自定义查询。我们希望为开发人员提供一种尽可能简单地访问所有数据的方法。我们创建了一个模块,允许您创建自定义临时SQL,以及可以重复使用以显示自定义内容或作为API端点公开的Lucene查询。您可以使用它来创建有效的查询,或将数据公开给SPA应用程序。
-
Recipes. Recipes are scripts that can contain content and metadata to build a website. You can now include binary files, and even use them to deploy your sites remotely from a staging to a production environment for instance. They can also be part of NuGet Packages, allowing you to ship predefined websites.
-
食谱。食谱是可以包含用于构建网站的内容和元数据的脚本。您现在可以包含二进制文件,甚至可以使用它们将站点从登台远程部署到生产环境。它们也可以是NuGet包的一部分,允许您运送预定义的网站。
-
Scalability. Because Orchard Core is a multi-tenant system, you can host as many websites as you want with a single deployment. A typical cloud machine can then host thousands of sites in parallel, with database, content, theme and user isolation.
-
的可扩展性。由于Orchard Core是一个多租户系统,因此您可以通过单个部署托管任意数量的网站。然后,典型的云计算机可以并行托管数千个站点,包括数据库,内容,主题和用户隔离。
Status
状态
The latest released version of Orchard Core is 1.0.0-beta2
.
最新发布的Orchard Core版本是“1.0.0-beta2”。
The release notes can be found on https://github.com/OrchardCMS/OrchardCore/releases/tag/1.0.0-beta2
发行说明可在https://github.com/OrchardCMS/OrchardCore/releases/tag/1.0.0-beta2上找到
The software is complete enough for external testing -- that is, by groups outside the organization or community that developed the software. Beta software is usually feature complete, but may have known limitations or bugs. Betas are either closed (private) and limited to a specific set of users, or they can be open to the general public.
该软件足以完成外部测试 - 即组织外部的团体或开发软件的社区。 Beta软件通常功能齐全,但可能有已知的限制或错误。 Betas要么是封闭的(私人的),要么限于特定的一组用户,要么可以向公众开放。
Here is a more detailed roadmap.
这是一个更详细的[路线图](https://github.com/OrchardCMS/OrchardCore/wiki/Roadmap)。
Getting Started
入门
-
Clone the repository using the command
git clone https://github.com/OrchardCMS/OrchardCore.git
and checkout themaster
branch for the latest release, or thedev
branch for the cutting-edge version. -
使用命令
git clone https:// github.com / OrchardCMS / OrchardCore.git
克隆存储库,并查看最新版本的master
分支,或查看最新版本的dev
分支。
-
Watch the ASP.NET Community Standup video where Orchard Core was demonstrated: https://www.youtube.com/watch?v=HeDjv3blBjQ&t=2246s&list=PL1rZQsJPBU2StolNg0aqvQswETPcYnNKL&index=24
-
观看Orchard Core演示的ASP.NET社区站立视频:https://www.youtube.com/watch?v=HeDjv3blBjQ\u0026t=2246s\u0026list=PL1rZQsJPBU2StolNg0aqvQswETPcYnNKL\u0026index=24
-
Follow the samples on https://github.com/OrchardCMS/OrchardCore.Samples that will guide you on how to build modular and multi-tenant applications
-
按照https://github.com/OrchardCMS/OrchardCore.Samples上的示例进行操作,该示例将指导您如何构建模块化和多租户应用程序
Command line
命令行
-
Install the latest versions of the .NET Core SDK from this page https://www.microsoft.com/net/download/core
-
从此页面https://www.microsoft.com/net/download/core安装最新版本的.NET Core SDK
-
Call
dotnet build
. -
调用
dotnet build
。 -
Next navigate to
D:\OrchardCore\src\OrchardCore.Cms.Web
or wherever your respective folder is on the command line in Administrator mode. -
接下来导航到
D:\\ OrchardCore \\ src \\ OrchardCore.Cms.Web
或管理员模式下命令行中各自文件夹的位置。 -
Call
dotnet run
. -
叫
dotnet run
。 -
Then open the
http://localhost:5000
URL in your browser. -
然后在浏览器中打开
http:// localhost:5000
URL。
You can also read the Code Generation Templates documentation to create new applications from predefined templates.
您还可以阅读[代码生成模板文档](模板/自述文件)以从预定义模板创建新应用程序。
Visual Studio 2017
Visual Studio 2017
-
Download Visual Studio 2017 (any edition) from https://www.visualstudio.com/downloads/
-
从https://www.visualstudio.com/downloads/下载Visual Studio 2017(任何版本)
-
Open
OrchardCore.sln
and wait for Visual Studio to restore all Nuget packages -
打开
OrchardCore.sln
并等待Visual Studio恢复所有Nuget包 -
Ensure
OrchardCore.Cms.Web
is the startup project and run it -
确保
OrchardCore.Cms.Web
是启动项目并运行它
Contributing
特约
We currently follow these engineering guidelines.
我们目前遵循这些[工程指南](https://github.com/OrchardCMS/OrchardCore/wiki/Engineering-Guidelines)。