Skip to content

geofflangenderfer/ihp-simple-seat-reservation

 
 

Repository files navigation

IHP Simple Seat Reservation

GitPod

Local

  1. After following the steps to install IHP, you can run this app locally by running:
direnv allow
devenv up
  1. In another tab execute make tailwind-dev to compile the CSS.
  2. On a third tab you can execute mailhog, and watch the emails under http://0.0.0.0:8025/ (how to install mailhog)
  3. 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"

Test

nix-shell
ghci
:l Test/Main
main

If you get an error see this.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Haskell 90.1%
  • PLpgSQL 3.4%
  • Nix 3.1%
  • Makefile 1.5%
  • JavaScript 1.3%
  • CSS 0.6%