Skip to content

Creating an Orchard Core CMS website

In this guide you will setup Orchard Core as a Content Management System from a project template.

What you will need

Creating the projects

There are different ways to create sites and modules for Orchard Core. You can learn more about them here.

In this guide we will use our "Code Generation Templates". You can install the latest stable release of the templates using this command:

dotnet new install OrchardCore.ProjectTemplates::1.8.2-*

Note

To use the development branch of the template add --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 the following command:

dotnet new occms -n MySite

This creates a new Orchard Core CMS project in a folder named 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

Your application should now be running and listening on the following ports:

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

Open a browser and navigate to https://localhost:5001 to display the setup screen.

For demonstration purposes, we will create the website using the Blog recipe. The Blog recipe is a starter recipe included with Orchard Core that contains a list of features and steps to configure an Orchard Core website.

Complete the setup form and select the Blog recipe and SQLite for the database.

image

Submit the form. A few seconds later you should be looking at a Blog Site.

image

In order to configure it and start writing content you can go to https://localhost:5001/admin.

Summary

You just created an Orchard Core CMS powered blog engine.