/saturn-api-with-tests-template

API Saturn with tests (xUnit, FsUnit) basic template

Primary LanguageF#

F# Saturn API with tests template

How to use it

Clone the repo!

Requirements

dotNET 6

Editor capable of working with F#, I personally recommend:

Other options:

Stuff inside API

Saturn is built on top of Giraffe Take a look at these templates to compare the difference with other frameworks:

Stuff inside TESTS

How to run:

  • api - cd api && dotnet run
  • tests - cd tests && dotnet test

What if I don't want tests?

Just remove the tests folder!

Why make this template?

Current Saturn template seems to be a little bit outdated and a lot of templates have full feature enabled from the start. This is of course excellent when you know what you want and what you are doing, but a lot of people are coming to F# very fresh and they ask how to start building backends. This template is meant a nice fresh start for them, without much complication

TODO:

  • Controller example

Explore the basic api: