This a a quick reference app for using F#, Suave and Expecto together that works in VS Code.
- HTTP API for a "document store" API
- Suave Self Hosted Web Server
- Expecto Tests
- Simple Tests
- Integration Tests against the actual webserver
- FAKE build script
From a command prompt with F# 4.1+ available from the default path:
build.cmd Test (or
build.sh Test) to build and run all the tests.
Open VS Code in the root directory and press
Ctrl+F5 to run the FAKE build to build just the code without the tests.
You can run the tests in VS Code by Pressing
Ctrl+F6 to run the Expecto tests.
To make VS Code run the tests and build, change
"Build" on this line in
// start build RunTargetOrDefault "Build"
- F# 4.1
- VS Code
If you have any problems running the code / tests or you want to contribute any changes, or if you just want to ask about anything else, feel free to open an issue.