Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/MNie/FSharpNetCoreWebApiTemplate

F# .net core web api template
https://github.com/MNie/FSharpNetCoreWebApiTemplate

dotnetcore fsharp webapi

Last synced: 4 months ago
JSON representation

F# .net core web api template

Lists

README

        

[![NuGet Badge](https://buildstats.info/nuget/WebAPI.FSharp.Template)](https://www.nuget.org/packages/WebAPI.FSharp.Template)
[![Build Status](https://travis-ci.org/MNie/FSharpNetCoreWebApiTemplate.svg?branch=master)](https://travis-ci.org/MNie/FSharpNetCoreWebApiTemplate)

# F# ASP.NET Core Web Api Template
# How to use it?
* fork and download repository
* install template as a .net core template from nuget
* install template as a .net core template locally

# How to install it as a template from nuget?
* run `dotnet new -i WebAPI.FSharp.Template::*`
* create new project executing `dotnet new webapi -lang F# -n PROJECT_NAME -o FOLDER_NAME`

# How to install it as a template locally?
* download repository
* run command `dotnet new -i PATH*`, where *PATH* is a path to a folder where project is located
* create new project executing `dotnet new webapi -lang F# -n PROJECT_NAME -o FOLDER_NAME`
* `dotnet restore`
* `dotnet run` or `dotnet watch run`

# How it works?
* `dotnet run`
![dotnet run](https://raw.githubusercontent.com/MNie/FSharpNetCoreWebApiTemplate/master/images/webapi.gif)
* `dotnet watch run`
![dotnet watch run](https://raw.githubusercontent.com/MNie/FSharpNetCoreWebApiTemplate/master/images/webapifsharpwatch.gif)

If you want to extend this template, or create more complex one based on this, don't hold back :)