nancy-template-webservice - Nancy.Template.Webservice 0.5.0
Nancy template for web services including a few helpful libraries, for the full list of the libraries see the github page on the project url.
PM> Install-Package Nancy.Template.Webservice -Version 0.5.0 -Source https://www.myget.org/F/nancy-template-webservice/api/v3/index.json
> nuget.exe install Nancy.Template.Webservice -Version 0.5.0 -Source https://www.myget.org/F/nancy-template-webservice/api/v3/index.json
> dotnet add package Nancy.Template.Webservice --version 0.5.0 --source https://www.myget.org/F/nancy-template-webservice/api/v3/index.json
source https://www.myget.org/F/nancy-template-webservice/api/v3/index.json
nuget Nancy.Template.Webservice ~> 0.5.0
Copy to clipboard
> choco install Nancy.Template.Webservice --version 0.5.0 --source https://www.myget.org/F/nancy-template-webservice/api/v2
Import-Module PowerShellGet
Register-PSRepository -Name "nancy-template-webservice" -SourceLocation "https://www.myget.org/F/nancy-template-webservice/api/v2"
Install-Module -Name "Nancy.Template.Webservice" -RequiredVersion "0.5.0" -Repository "nancy-template-webservice"
Copy to clipboard
Nancy.Template.Webservice 
Dotnet template library used to create web services using the Nancy web Framework.
Note: Since Nancyfx is no longer being maintained i will be deprioritizing this library, please check here for details
Builds
| Appveyor |
|---|
Packages
| NuGet (Stable) | MyGet (Prerelease) |
|---|---|
Purpose
A quick scaffolder for web services build using Nancyfx as the web framework. It provides the basic tools for validations, endpoint creation and database usage. As is the case with Nancy, it is relatively customizable.
It can be altered to use:
- multiple types of logs (as based on the serilog sinks).
- different types of caches (as based on the rapid cache lib).
- other types of ORMs (i. e. Dapper) by replacing the Repository class with byo.
- alternatively move to swagger (legacy version) from openapi replacing the nancy.metadata.openapi with nancy.metadata.swagger library from nuget.
Install
For installation via the dotnet install command:
dotnet new -i "Nancy.Template.Webservice::*"
For myget installations you can specify the source on the dotnet command:
dotnet new -i "Nancy.Template.Webservice::*" --nuget-source https://www.myget.org/F/nancy-template-webservice/api/v3/index.json
Then you can freely use it by executing the following dotnet command:
dotnet new nancyws -o MySampleWs
Uninstall
To uninstall simply execute:
dotnet new -u "Nancy.Template.Webservice"
Dependencies
This template targets dotnet core 3.1. The following libraries are included as part of the projects:
- Nancy
- Nancy.Metadata.OpenApi
- Nancy.RapidCache
- Nancy.Serilog
- Serilog
- Microsoft.Extensions.Diagnostics.HealthChecks
- Insight.Database
- Xunit
- NSubstitute
- Altcover
- ReportGenerator
For further information on custom templates, refer to the Microsoft documentation.
Upgrade to netcore 3.1
OwnersJaxelr |
AuthorsJaxel Rojas |
Project URLhttps://github.com/Jaxelr/Nancy.Template.Webservice |
LicenseMIT |
Tagstemplate;nancyfx;webservice; |
Info7 total downloads |
| 7 downloads for version 0.5.0 |
| Download (2.39 MB) |
| Found on the current feed only |
Package history
| Version | Size | Last updated | Downloads | Mirrored? | |||
|---|---|---|---|---|---|---|---|
|
|
0.5.0 | 2.39 MB | Thu, 23 Jul 2020 20:46:01 GMT | 7 |
|