Skip to content

Example Web Hit Counter with Scotty and Monad Transformers

License

Notifications You must be signed in to change notification settings

kutyel/hit-counter

Repository files navigation

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>

Releases

No releases published

Packages

No packages published