Skip to content
This repository was archived by the owner on Jun 30, 2021. It is now read-only.

Getting started

Alexanderius edited this page Aug 28, 2017 · 10 revisions

To create your first Simplify.Web application you can install the VS 2017 Package (latest Simplify.Web) or VS 2013-2015 Package (Simplify.Web 1.1) from the visual studio online gallery, and then just use the respective project templates:

New project window

Then just compile (it will download required nuget packages at first build) and run it.

Example of Katana application:

New project structure:

New project structure

Start debugging and after launch you will see "Hello world!" in default web-site page:

New project structure

Typical Simplify.Web application consist of:

  • Startup.cs file - startup file for your application, here your should initialize OWIN components. Simplify.Web is also an owin middleware;
public class Startup
{
    public void Configuration(IAppBuilder app)
    {
       app.UseSimplifyWeb();
    }
}
  • App_Data folder - storage point for file-based data stores (for example string table files);
  • App_Data/StringTable.en.xml - string table default file, contains string table localizable items;
<?xml version="1.0" encoding="utf-8" ?>

<items>
    <item name="SiteTitle" value="WebApplication5" />
    <item name="HtmlListDefaultItemLabel" value="Not selected..." />
</items>

SiteTitle - default and prefix site title, used by framework

HtmlListDefaultItemLabel - lists generator control default item, used by ListsGenerator class

  • Templates - folder for storing HTML template files, should contain atleast Master.tpl file;
  • Templates/Master.tpl file - web-site master template file, typically contains base layout for web-site (html, header, body tags);
  • Controllers folder - folder for placing your controller classes (can be any folder);
  • Views folder - folder for placing your views classes (can be any folder);

Defaults

  • by default "styles", "scripts", "images", "content" and "fonts" folders is opened for read access. Static files (css, js, images etc.) should be placed here

Examples

You can find example Simplify.Web application which is using controllers, views, templates, localization, js/css frameworks, authentication and so on here

Next page >>

Clone this wiki locally