https://github.com/kutyel/hit-counter
Example Web Hit Counter with Scotty and Monad Transformers
https://github.com/kutyel/hit-counter
haskell haskell-exercises hit-counter monad-transformers monads scotty scotty-website
Last synced: about 1 month ago
JSON representation
Example Web Hit Counter with Scotty and Monad Transformers
- Host: GitHub
- URL: https://github.com/kutyel/hit-counter
- Owner: kutyel
- License: mit
- Created: 2020-02-13T09:51:04.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-02-13T10:16:31.000Z (about 5 years ago)
- Last Synced: 2025-02-02T01:43:46.381Z (3 months ago)
- Topics: haskell, haskell-exercises, hit-counter, monad-transformers, monads, scotty, scotty-website
- Language: Haskell
- Size: 4.88 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# hit-counter
[](https://github.com/kutyel/hit-counter/actions)
[](https://github.com/tweag/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!
```sh
$ curl localhost:3000/wootSuccess! Count was: 1
$ curl localhost:3000/wootSuccess! Count was: 2
$ curl localhost:3000/blahSuccess! Count was: 1
```