See my blog for more details.
The Saturn App Template is best developed with Visual Studio Code or Visual Studio 2017 (Community works).
More about Saturn
This is for pure F# web applications and should be preferred over the original web app template.
You can target netstandard2.0, but in that case you wont be able to use the FSharp.Data SqlCommandProvider and some other F# type providers.
Here is a list of the possible target frameworks. https://docs.microsoft.com/en-us/dotnet/standard/frameworks
- Example CAS setup
- Examples of an access restricted application using two routes
- Logged In View
- Default View
- How to setup a config using FSharp.Configuration and YAML
How to get me running
- Clone me
- Copy config_design.yaml and rename it to config.yaml
- Install packages with
- Run the build and launch the app
- in bash
sh build-dotnet.sh Run
- in cmd
- in bash
Instead of Chessie for error handling I recommend the builtin Result type or FsToolkit.ErrorHandling which provides more utilities
FsToolkit.ErrorHandling has been installed in Infrastructure and WebHost
- TickSpec for BDD https://github.com/fsprojects/TickSpec
- Canopy for UI tests https://lefthandedgoat.github.io/canopy/
How to host development on IIS
By default this template will run as self-hosted using Kestrel, but you can host on IIS too.
- Add a site to IIS and point it to the WebHost folder
- Configure the bindings to whatever port you want to run it on. The template uses 8085.
- Configure the Application Pool to use No Managed Code
- Configure the web.config file
- Make sure processPath points to where the executable is stored when the project is built. This is template puts it here: .\bin\Debug\net461\Template.Saturn.WebHost.exe
You can also host on IIS as a published site
The above steps will get you there but instead of pointing to the WebHost folder, use Visual Studio or
dotnet publish to create a published site and use that in IIS. You may need to copy over the web.config file manually. I don't know why.
I might be running on Azure
You can login with your Net ID.