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.
- Run
dotnet restore
before opening the project in VSCode. - Use
dotnet watch run
for 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:
- Use
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
/app
wherever you like. - Run it from there.