Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 688 Bytes

README.md

File metadata and controls

26 lines (19 loc) · 688 Bytes

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>