Orchard Core 开发示例教程
改仓库是搬运并翻译的中文版本(机器翻译+人工校对),同时保留了英文翻译,如果发现有翻译错误可以提交PR 或 Issue。
仓库地址: https://gitee.com/hyzx86/Orchard-Training-Demo-Module/
想知道该示例教程覆盖了哪些模块,见:https://gitee.com/hyzx86/Orchard-Training-Demo-Module/blob/dev-cn/Map.cs
翻译过程中加入了一些 代码导航注释 ,如 <see ref="ClassName"/> (但并不是全部都有,只是我看到后面顺手给加上了)
运行该仓库,你需要以下步骤:
- 从这里下载OrchardCore 的完整源代码:https://github.com/OrchardCMS/OrchardCore/
- 克隆此仓库:https://gitee.com/hyzx86/Orchard-Training-Demo-Module/
- 由于该仓库依赖于 Lombiq.VueJs 项目,所以你还需要同时克隆这个仓库:https://github.com/Lombiq/Orchard-Vue.js
- 将克隆下拉的 Lombiq.VueJs 项目 文件夹重命名为:Lombiq.VueJs
- 将 Orchard-Training-Demo-Module 和 Lombiq.VueJs 两个文件夹 移动到 OrchardCore\src\OrchardCore.Modules\ 目录下
- 选中 解决方案文件夹 OrchardCore.Modules 以此添加这两个项目到OrchardCore解决方案中
- 将OrchardCore.Cms.Web 项目设置为启动项目
- 安装 nodejs, 运行 npm install gulp -g 全局安装 gulp ,vuejs项目需要.。
- 启动并配置站点
- (非必须)因为目前中文翻译问题很多,最好是在配置好站点后将站点切换到英文,/Admin/Settings/localization
- 启用培训模块:https://localhost:5001/Admin/Features ,搜索 Training ,然后点击Enable 启用
- 第一节课 点击这里开始 StartLearningHere.md
所有的教程说明都在代码注释里,如下截图:
感谢Lombiq 团队为我们提供的 教程资源,本仓库完全搬运自 Github 该项目:https://github.com/Lombiq/Orchard-Training-Demo-Module
转载请注明出处: https://www.cnblogs.com/Qbit/p/13193629.html