kutyel / hit-counter

Example Web Hit Counter with Scotty and Monad Transformers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hit-counter

Actions Status ormolu

Example Web Hit Counter with Scotty and Monad Transformers!

Usage

First, start running the app:

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

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

$ curl localhost:3000/woot
<h1>Success! Count was: 1</h1>
$ curl localhost:3000/woot
<h1>Success! Count was: 2</h1>
$ curl localhost:3000/blah
<h1>Success! Count was: 1</h1>

About

Example Web Hit Counter with Scotty and Monad Transformers

License:MIT License


Languages

Language:Haskell 100.0%