{"repo":"scotty-web/scotty","free":true,"listed":false,"github":"https://github.com/scotty-web/scotty","clone":"git clone https://github.com/scotty-web/scotty.git","description":"Haskell web framework inspired by Ruby's Sinatra, using WAI and Warp (Official Repository)","language":"Haskell","stars":1775,"topics":["rest","rest-api","web-framework"],"license":"BSD-3-Clause","category":"api-integrations-sdks","readme_excerpt":"Scotty A Haskell web framework inspired by Ruby's Sinatra, using WAI and Warp. Scotty is the cheap and cheerful way to write RESTful, declarative web applications. A page is as simple as defining the verb, URL pattern, and Text content. It is template-language agnostic. Anything that returns a Text value will do. Conforms to the web application interface (WAI). Uses the very fast Warp webserver by default. As for the name: Sinatra + Warp = Scotty. Examples Run /basic.hs to see Scotty in action: Setting phasers to stun... (port 3000) (ctrl-c to quit) Or equivalently with stack : Once the server is running you can interact with it with curl or a browser: foobar 42 Additionally, the examples directory shows a number of concrete use cases, e.g. exception handling global state configuration cookies file upload session WAI middlewares (logging, header validation) and more More Information Tutorials and related projects can be found in the Scotty wiki. Contributing Feel free to ask questions or report bugs on the Github issue tracker. Github issues are now (September 2023) labeled, so newcomers to the Haskell language can start with easy fix ones and gradually progress to new feature s, bug s and R&D :) Package versions Scotty adheres to the Package Versioning Policy. FAQ Fails to compile regex-posix on Windows If you are using stack, add the following parameters to stack.yaml : If you are using cabal, update the constraints section of cabal.project.local as follows: Contributors Co","default_branch":null,"files":null,"tree":[],"storefront":"/r/scotty-web","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/scotty-web/scotty/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}