AP.Zesty
1.0.0
See the version list below for details.
dotnet add package AP.Zesty --version 1.0.0
NuGet\Install-Package AP.Zesty -Version 1.0.0
<PackageReference Include="AP.Zesty" Version="1.0.0" />
paket add AP.Zesty --version 1.0.0
#r "nuget: AP.Zesty, 1.0.0"
// Install AP.Zesty as a Cake Addin #addin nuget:?package=AP.Zesty&version=1.0.0 // Install AP.Zesty as a Cake Tool #tool nuget:?package=AP.Zesty&version=1.0.0
Description Zesty was born with the aim of simplifying the development of web applications, allowing to adopt some practices that improve development and operations.
The Zesty solution contains the Zesty.Core project (the framework) and Zesty.Web (a sample project).
To work Zesty needs a storage. The default storage is based on SQL Server, in case you prefer to use another technology to save the information, just implement the Zesty.Core.IStorage interface and configure the key StorageType in appsettings.json.
Inside the Zesty.Core.Scripts directory there are two SQL scripts, Create.sql (contains the commands to create objects) and Populate.sql (creates the contents needed to run the Zesty.Web project).
Usage To create a Zesty-based project, you need to create a .NET Core Web Application (MVC) project and add a reference to Zesty.Core.
Add the following section in the appsettings.json.
Be aware to edit the settings with your environment values.
"Zesty": { "StorageImplementationType": "Zesty.Core.Storage.SqlServer, Zesty.Core", "StorageSource": "Data Source = 192.168.1.222; Initial Catalog = Zesty; User Id = zestyUser; Password = zesty.Password." } Add a file named nlog.config, set the build type as Content, set Copy to output directory and paste the following contents.
Be aware to edit the settings with your environment values.
<?xml version="1.0" encoding="utf-8" ?> <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" autoReload="true">
<extensions> <add assembly="NLog.Web.AspNetCore"/> </extensions>
<targets> <target xsi:type="File" name="logger" fileName="/Users/eca/logs/zesty-web-${shortdate}.log" layout="${longdate} ${threadid} ${uppercase:${level}} ${logger} ${message} ${exception:format=tostring}" /> </targets>
<rules> <logger name="*" minlevel="Debug" writeTo="logger" /> </rules> </nlog> In the Startup.cs file add this using
using Zesty.Core.Common; In the Startup.cs file in the method ConfigureServices add this line of code
services.AddZesty(); In the Startup.cs file in the method Configure add this line of code
app.UseZesty();
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp3.1 is compatible. |
-
.NETCoreApp 3.1
- JWT (>= 8.2.3)
- NLog (>= 4.7.11)
- NLog.Extensions.Logging (>= 1.7.4)
- NLog.Web.AspNetCore (>= 4.14.0)
- System.Data.SqlClient (>= 4.8.2)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on AP.Zesty:
Package | Downloads |
---|---|
AP.Zesty.Microsoft.SqlServer
This is the SQL Server implementation of the Zesty.Core.IStorage interface. It can be used always as Zesty in your app.settings.json like this: "Zesty": { "StorageImplementationType": "Zesty.Microsoft.SqlServer.Storage, Zesty.Microsoft.SqlServer", "StorageSource": "Server=localhost\\SQLEXPRESS01;Database=Zesty;Trusted_Connection=True;" } |
GitHub repositories
This package is not used by any popular GitHub repositories.
First NuGet release of Zesty.Core fork from Andrea Prestia.