quickwebapp: A quick webapp generator for any file processing tool

[ gpl, library, web ] [ Propose Tags ] [ Report a vulnerability ]

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]

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

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 2.1.0.0, 2.1.1.0, 3.0.0.1, 3.0.0.2
Change log Changelog
Dependencies aeson, base (>=4 && <5), bytestring, containers, either, lucid, servant, servant-lucid, servant-server, text, warp [details]
License GPL-3.0-only
Author Julien Tanguy
Maintainer julien.tanguy@jhome.fr
Revised Revision 1 made by jtanguy at 2015-09-04T16:11:38Z
Category Web
Home page https://github.com/jtanguy/quickwebapp
Bug tracker https://github.com/jtanguy/quickwebapp/issues
Source repo head: git clone https://github.com/jtanguy/quickwebapp -b master
Uploaded by jtanguy at 2015-09-04T16:09:19Z
Distributions
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 2942 total (8 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2015-09-30 [all 3 reports]

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