This project is a small example of servant-server, persistent and pux.
You can build and run the project with stack, e.g.:
stack docker pull
stack build
stack --docker-run-args='--net=bridge --publish=3000:3000' exec example-servant-persistentThen you can query the server from a separate shell:
curl -H 'Content-type: application/json' localhost:3000/user/add --data '{"name": "Alice", "age": 42}'
curl -H 'Content-type: application/json' localhost:3000/user/get/Alicestack exec psGeneratorstack exec example-servant-persistent-doccd client
npm install
npm startThen you can browse top page at http://localhost:8080