quickwebapp

A quick webapp generator for any file processing tool https://github.com/jtanguy/quickwebapp

Latest on Hackage:3.0.0.2

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

GPL-3 licensed by Julien Tanguy

quickwebapp

A quick-and-dirty api generator, for any function a -> Either String b.

It is inspired from the interact function from the Prelude.

interactWeb (reverse :: String -> String)

This creates a server listening on port 8080. You can change the port with the PORT env variable.

You can query it via a browser at http://localhost:8080 or by using curl/httpie

httpie

http :8080 input="<your input string>"

curl

curl localhost:8080 -d input="<your input string>"

Changes

v 1.0
=====
Initial release

v3.0
====
New release, powered by servant
- Side by side input and output
- Form submitted via ajax
- httpie and curl samples


comments powered byDisqus