Orchard Core: one-minute ASP. NET Core CMS, orchardcore

Source: Internet
Author: User
Tags orchard cms

Orchard Core: one-minute ASP. NET Core CMS, orchardcore

Orchard Core is the ASP. NET Core version of Orchard CMS.

Orchard Core is a new generation of ASP. NET Core CMS.

Official documents: http://orchardcore.readthedocs.io/en/latest/
GitHub: https://github.com/OrchardCMS/OrchardCore

The following is a quick start to build a CMS

Create a project

Open VS2017 to create a CMSWeb ASP. NET Core Web application

 

Then select an empty Template

 

Install the OrchardCore package

NuGet package command

Install-Package OrchardCore.Application.Cms.Targets

Or search for OrchardCore. Application. Cms. Targets in NuGet.

 

Project development

Open Startup. cs and add in ConfigureServices

services.AddOrchardCms(); 

Delete

app.Run(async (context) =>{    await context.Response.WriteAsync("Hello World!");}); 

Join

app.UseModules(); 

The final result is as follows:

    public class Startup    {        // This method gets called by the runtime. Use this method to add services to the container.        // For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940        public void ConfigureServices(IServiceCollection services)        {            services.AddOrchardCms();        }        // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.        public void Configure(IApplicationBuilder app, IHostingEnvironment env)        {            if (env.IsDevelopment())            {                app.UseDeveloperExceptionPage();            }            app.UseModules();        }    }

Then run the program. Open the browser and you will see the initialization installation interface. Enter the corresponding information and complete the installation.

 


Note that the password must contain uppercase and lowercase numbers and characters before it can be successfully submitted. Red is not acceptable.

After the installation, configure it as follows:

 

The background is/Admin. You can go to view related settings.

Orchard Core Framework: ASP. NET Core modular, multi-tenant Framework.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.