I've provided an
.envrc for direnv which uses
nix-shell to load
shell.nix which provides the dependencies needed to run the project.
But it's not required to use
nix-shell since the only deps are
a version 7.2 or newer and
It's required to run
composer install in this directory before starting
the webserver and then running the repl pointing to the webserver.
The database is a sqlite database which ends up in
sqlite.db in the root
directory of the project.
php -S localhost:8000 -t public/
php repl.php http://localhost:8000
curl -X DELETE http://localhost:8000/inventory/item-name/amount
curl -X PUT http://localhost:8000/inventory/item-name/amount