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: 2 days ago
JSON representation
F# .net core web api template
- Host: GitHub
- URL: https://github.com/mnie/fsharpnetcorewebapitemplate
- Owner: MNie
- License: apache-2.0
- Created: 2017-04-14T16:01:20.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-08T04:01:42.000Z (over 5 years ago)
- Last Synced: 2024-10-02T14:47:53.948Z (about 1 month ago)
- Topics: dotnetcore, fsharp, webapi
- Language: F#
- Size: 1.84 MB
- Stars: 17
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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 :)