The quickwebapp package

[ Tags: gpl, library, web ] [ Propose Tags ]

A quick-and-dirty api generator, inspired from the interact function from Prelude.

interactWeb reverse

This creates a server listening on port 8080, or environment value PORT.


[Skip to Readme]

Properties

Versions 2.1.0.0, 2.1.1.0, 3.0.0.1, 3.0.0.2
Change log Changelog
Dependencies aeson, base (==4.*), bytestring, containers, either, lucid, servant, servant-lucid, servant-server, text, warp [details]
License GPL-3
Author Julien Tanguy
Maintainer julien.tanguy@jhome.fr
Category Web
Home page https://github.com/jtanguy/quickwebapp
Bug tracker https://github.com/jtanguy/quickwebapp/issues
Source repository head: git clone https://github.com/jtanguy/quickwebapp -b master
Uploaded Fri Sep 4 16:09:19 UTC 2015 by jtanguy
Updated Fri Sep 4 16:11:38 UTC 2015 by jtanguy to revision 1   [What is this?]
Distributions NixOS:3.0.0.2
Downloads 646 total (105 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2015-09-30 [all 3 reports]
Hackage Matrix CI

Modules

[Index]

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

For package maintainers and hackage trustees


Readme for quickwebapp-3.0.0.2

[back to package description]

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>"