Dmitry Sikorsky

Simple Website Based on ASP.NET Core and Platformus CMS in 5 Minutes

Today we are going to create simple website you can use as your personal one using the Platformus CMS (it is based on ASP.NET Core and ExtCore framework). You even don’t have to be a developer, we will not write any code for now. The resulting website (that can run on the different platforms, even without standalone web server) will look like this:

Simple website based on ASP.NET Core and Platformus CMS in 5 minutes

First of all, download the latest Platformus archive from the website. It contains ready to use, published web application you can copy to your web server (Linux, Max or Windows) and run. Also, it contains the installer package (it is copied to the extensions folder as the DLL file). When you run your web application, it will help you to setup all the settings and to get working website:

Platformus installer

Installer package contains few usage scenarios you can choose from (there will be more of them in the future). Each usage scenario can create storage of the selected type (PostgreSQL, SQLite, or SQL Server database for now), copy the required packages, views, scripts, styles and everything else. (BTW, you can write your own installers for your products too.)

Please, follow this tutorial to install and run Platformus.

Good, now we should have a working web application we can use (it looks like on the first screenshot). First of all, let’s login into the backend and make quick review of the features it provides. Navigate to the /backend URL:

Platformus backend

Type the username and password you have entered during the installation and you will get into the backend:

Platformus backend

Content Section

Obviously, this section allows you to manage your content. To create, edit, or remove pages go to the Objects section and then to the Regular Pages one:

Platformus backend

This how the page editing looks like:

Platformus backend

In the context of Platformus, the pages are objects, which are described by classes and members. You can have different types of the pages, with different sets of the properties. Also, you are not limited to pages, you can create any objects for different needs (to display on the pages in the lists, or to return to a mobile applications using the API).

Menus and forms can be managed in a similar way:

Platformus backend

Both of them have some frontend UI you can use or replace. Also, forms user input is processed by the implementations of the IFormHandler interface, so you can choose what to do with the user input when the form is filled. By default, you can send it by the email to the specified recipients, but it is very easy to write your own handlers. You can use that, for example, to create comment objects on your blog post page (using the Platformus object mappers you can easily map Platformus objects to the C# ones and back).

Audience Section

This section allows you to control access to your web application using the permissions, roles, and users. Each user can have some roles. The roles have permissions. You can create your own permissions and then check them from the code.

Administration Section

Here you can manage the cultures (languages) your website supports, configure different variables (like email account settings) and to describe your content using classes and members. Let’s take a look at the Page class members:

Platformus backend

This is the list of the properties your pages have. You can create or remove members to configure your data model as you need. While an object consists of the properties, you can edit them from the backend. Each property has its data type. Each data type has its client-side editor configured. You can create more data types and more editors. For example, if you need your users to select the color for some object property, you can create Color data type with the corresponding editor, so user will be able to pick the color from a palette rather than type it in the text input field. This is a bit advanced things, we just mention them to know that it is possible.

Development Section

This is the last backend section. It allows to configure extensions (to add new features to your web application), to configure the endpoints (please, take a look at this article to know more about endpoints, because it is the central part of the Platformus requests handling mechanism). Also, you can manage your views, styles, scripts, and bundles (minified styles and scripts) using this section. So, for a simple website you don’t need to use your IDE, everything can be done from the backend.

Here you can see how the styles editor looks like:

Platformus backend


I hope it was interesting for you to look at this project. It is still at an early stage of development, but now you can already use it in real tasks. You can find more information in this tutorial. Feel free to ask any questions and let’s cooperate and improve this project together!

Links: website and sources.

Monday, September 25, 2017 by Dmitry Sikorsky