A simple TODO app in Haskell using PostgREST as a RESTful API for PostgreSQL.
[!NOTE] This app is a demo to showcase how developer experience in a Haskell project can be improved using Nix. We primarily use haskell-flake, services-flake and flake-parts to achieve this.
Learn with our blog post series:
nix develop
To enter development shell on cd
, use direnv
[!NOTE]
just services
starts postgres and postgrest, both of which bind to Unix socket.
just services
# Watch for changes in the Haskell code
just watch
[!NOTE]
todo-app-services-tcp
starts postgres, which listens on Unix socket, while postgrest listens on TCP port 3000.
nix run github:juspay/todo-app#todo-app-services-tcp
nix run github:juspay/todo-app -- view