A simple Hello World example in F# using Suave.io
F# Shell Batchfile
Latest commit 7de71a6 Jan 7, 2017 Giulio Santoli better title
Permalink
Failed to load latest commit information.
.paket paket Jan 7, 2017
Hello initial code Jan 7, 2017
.gitignore missing paket bootstrapper Jan 7, 2017
Dockerfile initial code Jan 7, 2017
LICENSE Initial commit Jan 7, 2017
README.md better title Jan 7, 2017
build.cmd initial code Jan 7, 2017
build.fsx initial code Jan 7, 2017
build.sh initial code Jan 7, 2017
docker-compose.yml initial code Jan 7, 2017
example.http initial code Jan 7, 2017
paket.dependencies initial code Jan 7, 2017
paket.lock initial code Jan 7, 2017

README.md

Hello Suave

A simple Hello World example in F# using Suave.io This project uses Paket as dependency manager and FAKE as build automation system. The web application listens at 8080 and there is a simple example.http file to use with the REST Client plug-in for Visual Studio Code.

Using Docker

I also provided a Dockerfile to run the code in a Docker container and a simple docker-compose.yml file to simplify it's usage.

RUNNING DOCKER MANUALLY

docker build -t gjuljo/hellosuave .
docker run -it --rm -p 9999:8080 gjuljo/hellosuave

USING DOCKER COMPOSE USING THE LOCAL VOLUME

docker-compose up -d local
docker-compose down -v
docker-compose stop local
docker-compose rm -v -f local

USING DOCKER COMPOSE USING THE IMAGE

docker-compose up -d app
docker-compose down -v
docker-compose stop app
docker-compose rm -v -f app

License

This project is licensed under the MIT License - see the LICENSE file for details