This sample app demonstrates F#, .NET Core, Giraffe, and using Sqlite. You can develop and run it cross-platform.
- Download the .NET Core 2.0 SDK.
- Install Visual Studio Code and Ionide-FSharp.. They're great for cross-platform F# development.
dotnet restorebefore opening the project in VSCode.
dotnet watch runfor development. It'll recompile and re-run the project when you make changes.
I recommend using Postman to play around with it.
This isn't really intended for production, but if you wish to deploy this somewhere, do the following:
dotnet publish -o app -c release. This will copy a release version of the app into a new folder called
/app, along with every other .dll dependency this app requires.
- Put the contents of
/appwherever you like.
- Run it from there.