You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Simplify.Web is an open-source, lightweight, fast, and highly customizable server-side .NET web framework based on ASP.NET Core for building HTTP-based web applications, RESTful APIs, etc.
11
+
12
+
The framework can be used as:
11
13
12
14
- An API backend framework
13
-
-As a mix of API backend + some SPA front end like Angular
14
-
-As an old way backendgenerated web-site
15
+
-A mix of API backend + SPA front end (e.g., Angular)
16
+
-A traditional backend-generated website
15
17
16
18
Can be hosted:
17
19
18
-
- The same way as an ApsNetCore MVC application (On IIS, or as a console application)
19
-
- Inside a windows service
20
+
- The same way as an ASP.NET Core MVC application (on IIS or as a console application)
21
+
- Inside a Windows service
20
22
21
23
## Main features
22
24
23
25
- Comes as Microsoft.AspNetCore middleware
24
26
- Can be used as an API backend only with front-end frameworks
25
27
- Based on MVC and MVVM patterns
26
-
- Lightweight & Fast
27
-
- Uses switchable IOC container for itself and controllers, views constructor injection ([Simplify.DI](https://github.com/SimplifyNet/Simplify/wiki/Simplify.DI))
28
-
-Support async controllers
29
-
- Supports controllers which can be run on any request
30
-
- Localization-friendly (supports templates, strings and data files localization by default)
31
-
- Uses fast templates engine ([Simplify.Templates](https://github.com/SimplifyNet/Simplify/wiki/Simplify.Templates))
28
+
- Lightweight & fast
29
+
- Uses a switchable IoC container for itself and controllers, views constructor injection ([Simplify.DI](https://github.com/SimplifyNet/Simplify/wiki/Simplify.DI))
30
+
-Supports async controllers
31
+
- Supports controllers which can run on any request
32
+
- Localization-friendly (supports templates, strings, and data files localization by default)
33
+
- Uses a fast template engine ([Simplify.Templates](https://github.com/SimplifyNet/Simplify/wiki/Simplify.Templates))
32
34
- Mocking-friendly
33
35
- Mono-friendly
34
36
35
37
## Quick start
36
38
37
39
There is a [templates package](https://github.com/SimplifyNet/Simplify.Web.Templates) available at nuget.org for Simplify.Web. It contains a couple of templates which can be a good starting point for your application.
38
40
39
-
Installing a templates package:
41
+
Install the templates package:
40
42
41
43
```console
42
44
dotnet new -i Simplify.Web.Templates
@@ -45,17 +47,17 @@ dotnet new -i Simplify.Web.Templates
### Some simple HTML generation controllers example
125
+
### Simple HTML generation controllers example
124
126
125
127
#### Static page controller v1 example
126
128
@@ -139,7 +141,7 @@ public class AboutController : Controller
139
141
140
142
#### Any page controller v1 with high run priority example
141
143
142
-
Runs on any request and adds login panel to a pages
144
+
Runs on any request and adds a login panel to pages.
143
145
144
146
```csharp
145
147
// Controller will be executed on any request and will be launched before other controllers (because they have Priority = 0 by default)
@@ -180,11 +182,11 @@ public class LoggedUserPanelView : View
180
182
Below is the list of sample applications showing different variations of Simplify.Web usage:
181
183
182
184
-[Only as an API backend with Angular + Bootstrap UI SPA](https://github.com/SimplifyNet/Simplify.Web/tree/master/src/SampleApps/SampleApp.Angular)
183
-
-[Kestrel-based Application with backend HTML generation, localization, authentication](https://github.com/SimplifyNet/Simplify.Web/tree/master/src/SampleApps/SampleApp.Classic)
185
+
-[Kestrel-based application with backend HTML generation, localization, authentication](https://github.com/SimplifyNet/Simplify.Web/tree/master/src/SampleApps/SampleApp.Classic)
-[Simple Kestrel-based Application hosted as windows-service](https://github.com/SimplifyNet/Simplify.Web/tree/master/src/SampleApps/SampleApp.WindowsServiceHosted)
189
+
-[Simple Kestrel-based application hosted as a Windows service](https://github.com/SimplifyNet/Simplify.Web/tree/master/src/SampleApps/SampleApp.WindowsServiceHosted)
188
190
189
191
## Contributing
190
192
@@ -207,9 +209,9 @@ Additional extensions to Simplify.Web live in their own repositories on GitHub.
207
209
-[Simplify.Web.Postman](https://github.com/SimplifyNet/Simplify.Web.Postman) - Postman collection and environment generation
208
210
-[Simplify.Web.Swagger](https://github.com/SimplifyNet/Simplify.Web.Swagger) - Swagger generation for controllers
209
211
-[Simplify.Web.Multipart](https://github.com/SimplifyNet/Simplify.Web.Multipart) - multipart form model binder
0 commit comments