This is a hello world project in Haskell. The project uses Scotty for REST, Aeson for JSON manipulation and MongoDB for persistence.
Helk uses MongoDB to store people information.
stack build
mongod --config /usr/local/etc/mongod.conf
stack exec helk-exe
$ curl http://localhost:9176
curl http://localhost:9176/people -d '{ "name": "foo", "age": 42 }'
{"age":42,"name":"foo"}
curl http://localhost:9176/people -d '{ "name": "bar", "age": 100 }'
{"age":100,"name":"bar"}
curl http://localhost:9176/people/foo
{"age":42,"name":"foo"}
curl http://localhost:9176/people
[{"age":42,"name":"foo"},{"age":100,"name":"bar"}]
curl -X DELETE http://localhost:9176/people/foo
curl -X DELETE http://localhost:9176/people/bar
curl http://localhost:9176/people
[]