项目作者: kutyel

项目描述 :
Example Web Hit Counter with Scotty and Monad Transformers
高级语言: Haskell
项目地址: git://github.com/kutyel/hit-counter.git
创建时间: 2020-02-13T09:51:04Z
项目社区:https://github.com/kutyel/hit-counter

开源协议:MIT License

下载


hit-counter

Actions Status
ormolu

Example Web Hit Counter with Scotty and Monad Transformers!

Usage

First, start running the app:

  1. *Main> :main lol
  2. Setting phasers to stun... (port 3000) (ctrl-c to quit)

Then, on a different terminal, start hitting those URLs!

  1. $ curl localhost:3000/woot
  2. <h1>Success! Count was: 1</h1>
  3. $ curl localhost:3000/woot
  4. <h1>Success! Count was: 2</h1>
  5. $ curl localhost:3000/blah
  6. <h1>Success! Count was: 1</h1>