- After following the steps to install IHP, you can run this app locally by running:
direnv allow
devenv up
- In another tab execute
make tailwind-dev
to compile the CSS. - On a third tab you can execute
mailhog
, and watch the emails under http://0.0.0.0:8025/ (how to installmailhog
) - Create 20 reservations in parallel in another tab. You can see the number of reservations increase at localhost:8001/ShowEvent:
time seq 20 | parallel -n0 "curl 'http://localhost:8002/CreateReservation' -H 'content-type: application/x-www-form-urlencoded' --data-raw 'eventId=7a7e856f-8475-48f5-977b-21bb85133a88&personIdentifier=1234' --compressed"
nix-shell
ghci
:l Test/Main
main
If you get an error see this.