This is a demo application using node.js able to receive HTTP GET and POST on http://localhost:8000/api/test. It is using express (https://expressjs.com/) and node-persist (https://github.com/simonlast/node-persist)
$ npm install
$ npm start
$curl -d '{"key1":"value1", "key2":"value2"}' -H "Content-Type: application/json" -X POST http://localhost:8000/api/test
$curl http://localhost:8000/api/test